Hi,
LabVIEW can act as an ActiveX server, allowing you to control it from any ActiveX client (Like a Visual Basic Application). Refer to LabVIEW's help (Help >> VI, Function & How-To help... (Ctrl + ?)) to look at the properties and methods exported by LabVIEW (Search for ActiveX and then check properties >> application class and VI Class).
This is how you would control LabVIEW, but if all you want is to use GPIB, it is probably easier to call the GPIB functions directly from Visual Basic. For this you have a few options:
- Call the GPIB driver functions directly. You can find examples and the language support files in you hard drive in "\National Instruments\NI-488.2\Languages\Visual Basic".
- Use VISA. If you have LabVIEW install you probably have N
I-VISA installed. You can find examples "C:\VXIpnp\WinNT\NIVISA" and the language interface files at "C:\VXIpnp\WinNT\Include"
- You can get Measurement Studio ActiveX controls. The Main advantage of Visual Basic is how easy it is to use ActiveX controls. Measurement Studio provides ActiveX control for GPIB and VISA (among others). You can find more info at:
http://sine.ni.com/apps/we/nioc.vp?cid=3769〈=US
Hope this helps.
Diego F.
National Instruments.
Note: the file paths may not be exactly the same in your computer.