Hello Matthieu,
you are right, using the
DIAdem.TOCommand ActiveX API would be the best solution for your task.
Have a look inside the DIAdem help, where properties and methods of the server are documented (on the side TOCommand-interface).
For parameter exchange I would recommend to use the method
DoubleVarSet, which sets any DIAdem double variable. You can then use the variables inside your VBS to access the parameters. Use the method
CmdExecuteSynch or
CmdExecuteASynch to start your script.
If you have more data to exchange (measurement channels, results, and so on) you might want to use the
DIAdem.TODataSheet command to access the data matrix of DIAdem via AxtiveX.
If it is really a lot of data and the ActiveX interface is too slow to handle all of it it seems to be more convenient to store it into data files, and import it from DIAdem.
Hope this advice does not come too late and you find it still helpful.
regards
Ingo Schumacher
Systems Engineering Manager CEERNational Instruments Germany