Jump to content

Using LabVIEW to run C Projects as a Hardware Target


grmc

Recommended Posts

Hi all,

I am trying to determine the feasibility of creating a system in LabVIEW 8.20 that can simulate a hardware target.

Basically the idea is to be able to run the C code on the simulator without modification to the C code (apart from the driver layer).

Has anyone attempted anything like this before? I suspect LabVIEW wasn't designed to handle C code in such a way that this would actually work!!

The only way I can think this might work as it stands, is to create a C code interpreter...

Any thoughts? Ideas? Opinions? Better tools to accomplish this?

Glenn

Link to comment

It sounds like you are looking for a "No Hardware" version of your C code with minimal modifications to its operation. I haven't done this for any c projects I've done, but I have done it for LabView projects. If you make all of your hardware calls through a DLL with an API you create, then you can create a DLL to match that API and operate without hardware. This can be useful in debugging parts of the program without hardware, or if you have to access multiple hardware targets. I wouldn't try to create a C parser in LabView, you'll never get it right, and it will always be a question in your debugging process.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.