Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Can LabView stand alone apps. be accessed from VB the same way VIs can ?


0 Kudos
Message 1 of 3
(3,881 Views)
The short answer is no, but you may want to repost this question in the LabVIEW section to see if anyone has some suggestions for you. LabVIEW has an ActiveX interface that allows loading, running, etc. VI files. You cannot build your own ActiveX interfaces into a LabVIEW standalone EXE though. You can now create your own ActiveX interfaces on LabWindows/CVI stand alone apps, but not in LabVIEW.

Again, I would repost this question with more details on what you really want to accomplish in the LabVIEW->General section.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 3
(3,881 Views)
Actually you can access a LabVIEW executable as an activeX server. I am attaching an example program that demonstrates the method. In this case a standalone executable is called as a server and is then used to launch VIs. Other examples exist on zone.ni.com.

The basic steps involved are as follows:

1. Create an Executable using Application Builder of LabVIEW. Make sure you select the 'Enable ActiveX Server' checkbox under 'Application Setting' tab.

2. Register the Type library created for the Executable using the command "MyApplication.exe /RegServer". For the current example the command used was "..(path)\WaveApp.exe /RegServer".

3. In Visual Basic, import the type library using the option 'Project/References' from the menu bar. If the type
library generated for the executable is now listed, use 'Browse' button to select it.

4. Use Visual Basic code to create an instance of the Server and use it to run the appropriate VI.


Regards,

Marcus Monroe
0 Kudos
Message 3 of 3
(3,881 Views)