LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i Integrate C Code in LabView

Hello,
Whats the difference between LabView/CVI and Measurement Studio for VC++?
How can i integrate C Code in LabView? Someone told me that i have to create a DLL!
Can someone explain how this DLL have to look like? Maybe a example will be fine!!!
I use the Vision Assistant...here i can create C Code! I want to use this Code for the Compact Vision System....

bye


0 Kudos
Message 1 of 5
(3,664 Views)
Second big Question: How can i download the DLL with the VI to the Compact Vision???????

cu
0 Kudos
Message 2 of 5
(3,656 Views)
Hello, Surfman

It sounds like you are a LV developer. In that case, I would expect that you would just use the Vision Assistant to generate LV code, which you can then include in your VI and download into the CVS, and therefore you wouldn't need to use CVI at all. I'm not a Vision or a LV expert, by any means, but I'm pretty sure you can do this with LV code instead of C code.

Besides, the C code that the Vision Assistant generates, in all likelihood cannot be used in the CVS, even in DLL form.

Now, if you want to add some C code to your VI that does not use the Vision libraries, you should be able to run that code in the CVS. The exact steps you take depend on exactly which version of CVI you have, and I'll be happy to provide more detailed help if this is what you want to do. But the basic steps are that you set your project type to DLL, you change the linkage to Real-Time, and you then call this DLL from your VI, using a call library node. When your run your VI, LV will also download the CVI DLL and its dependencies.

Hope this helps.

Luis
NI
0 Kudos
Message 3 of 5
(3,641 Views)
Besides, the C code that the Vision Assistant generates, in all likelihood cannot be used in the CVS, even in DLL form.
 
are you certain? and can i use C Code at the Compact Rio????
 
greets,
gerald
0 Kudos
Message 4 of 5
(3,620 Views)
I am not completely certain of that, since I've never used Vision myself. If that code calls into the higher level Vision functions, then it will not work when you download it. If it only does image acquisition, from the 1394 camera for example, then it might work.

The same is true for Compact Rio. It really depends on what the C code is doing, but this is something that is not officially supported. The only real-time targets that are officially supported with CVI 8.0 are PXI controllers, desktop real-time targets, and PCI embedded real-time DAQ cards.

Luis

0 Kudos
Message 5 of 5
(3,600 Views)