The heart of module is the USB relay card, a basic controller used to switch on/off a lot of devices from computer. Though it is an USB equipment, computers see it as a serial device and all communications are established through the COM port.
I'm not a script expert but I have realized that Astroart manage the controller in a very easy way using a couple of commands: Serial.Connect() and Serial.Send (). For example, with controller in COM3, I activate the relay #1 (turn on the calibration lamp on spectrograph) with commands:
Code: Select all
Serial.Connect (3)
Serial.Send (Chr(92) + Chr(1))
http://quasar.teoth.it/html/USB_relay/USB_relays.htm
Clear sky!
Paolo