LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open VI from within CIN ?

How to open a VI from within CIN (while LabVIEW is already running) ?
0 Kudos
Message 1 of 4
(2,649 Views)
x,

Opening a VI from within a CIN can be done exactly the same way it would be done if the CIN were the top level program and LabVIEW was only a part of it. If you have done any ActiveX programming, this would be the easiest route. Another method would be to create a DLL out of the VI that you want to call and call it from the CIN that way. Lastly, if you need to just launch a VI, you could return out of the CIN with a VI name to run and then put yourself back into the CIN again with a special flag to pick up where you left off.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 4
(2,649 Views)
A shell command to LabVIEW executable with the VI path as argument will also open the VI. And of course a DDE execute command open("vi path") to LabVIEW apllication DDE server.

As you see there are many ways.


LabVIEW, C'est LabVIEW

0 Kudos
Message 3 of 4
(2,649 Views)
Jean-Pierre Drolet wrote:
> A shell command to LabVIEW executable with the VI path as argument
> will also open the VI. And of course a DDE execute command open("vi
> path") to LabVIEW apllication DDE server.
>
> As you see there are many ways.



The shell command won't work, because LabVIEW is already running.
It'll only cause LabVIEW to crash. It might be ok in LabVIEW,
but not in CIN, don't know why.

How do you do DDE command in CIN? Which header file declare that?

What's other options?

Randy's Dll methods is what I'm using. But the Dll created by App.
builder isn't a true Dll.
0 Kudos
Message 4 of 4
(2,649 Views)