08-26-2020 09:55 AM
Hi,
I am trying to connect a RS485/RS232 Device with diadem.
Therefore I am using this block:
The F1 help seems to tell me this is the correct block.
However the help does a really bad job at explaining how to use it.
I need to somehow send a command to a thermal chamber, the correct command seems to be "1,TEMP,S23.0" in order to set a constant temperature according to the documentation of the thermal chamber. So, how should I use this block? Do I need a signal? I don't know. Additionally, to make the DAC run, an error tells me I need a *.atr file. Great! Who tells me the format of this file? Even google does not find it. The help of Diadem is so useless, tells nothing but the obvious. Can someone shed some light on this matter? Thanks!
Greetings
Thomas
08-28-2020 12:34 AM - edited 08-28-2020 12:41 AM
Hello Thomas,
If I understand you correct, you are going to send a command to an external device and what I assume is that you use an old DIAdem version like DIAdem 2015 or before.
IN DIAdem DAC with have two options for this: the “Control File Driver” and the “Script Driver”. The “Control File Driver” is an outdated option which is still installed for compatibility.
The better way for task is the “Script Driver”. In general, you need an input signal and a VBS script which defines how to communicate with the external device. If you open the “Script Driver” bock you can create in the parameters section a template for this script.
In the folder “…\DIAdem\examples\documents\...” you find two examples for a similar task: “Script_Example_1.dac (with Script_Example_1.vbs)” and “Script_Example_2.dac (with Script_Example_1.vbs)”
You find more information in the help of this block.
Greetings
Walter