11
The Business of Science
®
•
•
•
Serial Port Commands
Serial Port Commands
Serial Port Commands
Serial Port Commands
The following serial port commands are provided:
GetRev
Returns
Returns
Returns
Returns: Revision $x.x
Example
Example
Example
Example
SEND
SEND
SEND
SEND
$GetRev\r\n
RECEIVE
RECEIVE
RECEIVE
RECEIVE
$Revision 1.0\r\n
GetTemp(channel) - Returns the current temperature in K for the selected channel.
Channel
Channel
Channel
Channel: 1 or 2
Returns
Returns
Returns
Returns:$xxx.x or “OOR” if out of range.
Example (Get Channel 2 Temp)
Example (Get Channel 2 Temp)
Example (Get Channel 2 Temp)
Example (Get Channel 2 Temp)
SEND
SEND
SEND
SEND
$GetTemp 2\r\n
RECEIVE
RECEIVE
RECEIVE
RECEIVE
$21.6\r\n
GetSetp (channel,relay)
Channel
Channel
Channel
Channel: 0 or 1 (0-> Channel 1, 1-> Channel 2)
Relay
Relay
Relay
Relay: 0, 1, or 2. 0->LO, 1->HI, 2->SPARE
Returns
Returns
Returns
Returns: $xxx (integer)
Example (Get Channel 2 SPARE setpoint)
Example (Get Channel 2 SPARE setpoint)
Example (Get Channel 2 SPARE setpoint)
Example (Get Channel 2 SPARE setpoint)
SEND
SEND
SEND
SEND
$GetSetp 1,2\r\n
RECEIVE
RECEIVE
RECEIVE
RECEIVE
$280\r\n
SetSetp(channel,relay,temp)
Channel
Channel
Channel
Channel: 0 or 1 (0-> Channel 1, 1-> Channel 2)
R
R
R
Relay
elay
elay
elay: 0, 1, or 2. 0->LO, 1->HI, 2->SPARE
Temp
Temp
Temp
Temp: xxx (integer, no decimal point)
Returns
Returns
Returns
Returns: $xxx\r\n (returns the new value stored)
Example (Set Channel 1 LOW setpoint to 12K)
Example (Set Channel 1 LOW setpoint to 12K)
Example (Set Channel 1 LOW setpoint to 12K)
Example (Set Channel 1 LOW setpoint to 12K)
SEND
SEND
SEND
SEND
$SetSetp 0,0,12\r\n
RECEIVE
RECEIVE
RECEIVE
RECEIVE
$12\r\n