In my eyes, the most convenient way to do this is using the AcriveX server functionality of LabVIEW.
I lately wrote an example that is showing how it works. Here, the data
is exchanged between a LabVIEW VI and a DIAdem DAC scheme making use of
the script DAC driver. This Driver uses a VBS to access Control Values
of the LabVIEW VI.
You dont need to use the DAC module to do the communication though - it works as well with a normal VBS.
Unpack the attatched ZIP to one folder, it is containing 3 files.
Open DIAdem and load the DAC scheme. In order to make this program work on your PC you have to do some minor modifications:
Inside the Script-In1 Block, change the Parameter1 to the corresponding
path of the LabVIEW vi you unpacked and choose the LV.vbs as the script
that is going to be called by the block.
Open LabVIEW and load the DACSteuerung.vi. You need the LabVIEW DIAdem
connectivity toolkit to be installed. Start the VI. It will first start
the DIAdem DAC scheme and then transmit the value of the loop counter
as well as the stop button to DIAdem. While the loop counter is
displayed, the stop button is used to stop the DAC scheme as the vi is
stopped.
This is just a quick proove of concept - Have a look at the LabVIEW
help to see which ActiveX methods and properties are supported by the
server. You will see, it works much like VI server programming.
Ingo Schumacher
Systems Engineering Manager CEERNational Instruments Germany