LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I run a compiled Vi from VB and also pass a number of parameters to the Vi.

Thats it
0 Kudos
Message 1 of 4
(2,913 Views)
Since every VI is compiled, I'm not sure if you want to call a VI, .EXE, or .DLL. For an example of how to call a VI using ActiveX, there is an example at http://zone.ni.com/devzone/explprog.nsf/webmain/7978AD6FF174273C86256673004A97B0?opendocument&node=DZ52051_US. If you have the application builder and have created a LabVIEW .dll, there are several examples at http://zone.ni.com/devzone/devzone.nsf/webcategories/E2A99E7E10D5725D862567AC004F0A53?opendocument&node=DZ52048_US.
0 Kudos
Message 2 of 4
(2,913 Views)
Thanks Dennis those examples look quite comprehensive. The initial intention was to call a LabVIEW exe from VB or a dll.

Kind Regards

Paul Hennessy
0 Kudos
Message 4 of 4
(2,913 Views)
Hello,

I use LabView for the experiment, the problem is that it can only tell the difference of IDs.For example, COM1 is set with 4017(ID=001), 4018 (ID=002), 4050 (ID=003), under LabView , from this setting the Device Numbers will be set as 1000(for 4017),2000(for 4018),4050(for 4050) (ID*1000). But if the COM2 also controls some Adams,
for example ,4018M(ID=001) 4050(ID=002), I have to set them as
1000 and 2000 too, and then the programm will only get the data
from COM1. So I have set them(COM2) as 004 and 005, but it
does not work .

So may I set the different IDs with COM1 and COM2 for all the adams, and all of them can work ?

Thank you very much!
0 Kudos
Message 3 of 4
(2,913 Views)