LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to call a LabVIEW VI by reference from a CIN?

I am calling by reference in my LabVIEW program and would like to do the same from a CIN, if possible.
0 Kudos
Message 1 of 2
(2,273 Views)
> I am calling by reference in my LabVIEW program and would like to do
> the same from a CIN, if possible.
>

It is not possible to directly call a VI by reference from a CIN.

There are a couple approaches that are similar that will work. If you
have the professional version, you can build a DLL from VIs and can call
the DLL entrypoints from your CIN.

It is also possible to signal a LV occurrence from a CIN, and a LV
diagram could run a VI or perform an operation when the occurrence is
set. You will not be able to pass parameters with the occurrence though.

Finally, the approach that will be easiest to debug is to change the CIN
so that it returns to the diagram more often. Call the CIN and have it
return with an action. The actions can be -- run
a particular VI, delay
for x ms and call the CIN again, end the program, etc.

This last approach will be slightly less efficient at runtime, but in my
experience they are much more flexible and much easier to debug.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,273 Views)