To talk to the Temperature controller via RS 232, use
> sudo minicom
set this via the minicom software
- baud rate = 9600
- no parity
- 8 data bits
- 1 stop bit
- Then do
- E for echo on
- do "BEEP?", should get 0 or 1
- Reset the modem if you don't get a response
- do "BEEP?" again, success, we are talking to the newport 3040
Next up - have a script dump the response to a temperature query every second or so to a file. This is inferior to using some AD590s to sense the temperature via the front end, because of the time constants involved in loading / reading out files. I will buy some AD590s for future use (though they will get here after I am finished with this).
Useful command(s)
- TEC:T? - queries the temperature of the TEC sensor (and RTD in my case)
- TEC:SET:T? - queries the temperature set point
- TEC:T xxxxxx - can set the temperature setpoint
- sudo stty -F /dev/ttyS0 -parenb echo
I was having problems because /dev/ttyS0 was set to root permissions, and a sudo wouldn't cut it when I tried to echo something to it. I changed the permissions and this now works:
|