05-28-2021 12:58 AM - edited 05-28-2021 01:15 AM
Hello Mattias,
DIAdem has some global auxiliary variables which can be used in certain cases. They are existing with the start of DIAdem and “live” as long as DIAdem “lives” and the content of this variable "lives" until it is changed by the user. It is not necessary to define or declare then, but if often useful to initialize the ones you use. This can be done in a script or with CTRL+SHIFT+F1.
Note: In VBS scripts we recommend the use of self-defined variables with "speaking" names, in DAC for performance reasons the use of the DIAdem auxiliary variables.
With this background it is obvious that a restart of DIAdem destroys the content of the auxiliary variables. But it is possible to store the content of auxiliary variables (in the example only L3 is necessary) to a file. You can for example start the measurement via script and if it is finished write the L3 content to a file (please have a look at the commands TextFileOpen, TextFileWriteln, etc.)
Greetings
Walter
05-28-2021 05:46 AM
Hello again Walter,
Wow, this is extremely useful information! Are there any good examples of using scripts to start DAQ measurements?
Anyway, thank you very much for the help!
Best regards,
Mattias
05-28-2021 05:58 AM
Hi Mattias,
In the end you need these 3 commands:
Call SchemeLoad(DAC-Scheme-Name)
Call SchemeCheck("normal")
Call SchemeMeasStart()
You can also use the recording mode in SCRIPT for this.
And here are some examples:
Greetings
Walter
05-28-2021 06:03 AM
Hello Walter!
I will try this out next week.
And once again, thank you very much for all the help!
Best regards,
Mattias