Download This documentation as PDF

Transcript
1 The Lab::Measurement package
set_setpoint
$success = $tlk - > set_setpoint ({ Slot = > $Slot , Value = > $Value })
Set the value of setpoint slot $Slot.
$Slot
The TLK controllers provide 4 setpoint slots. $Slot has to be a number of (1..4)
and may not exceed the nSP-parameter set in the device (set_setpoint return
undef in this case)
$Value
Float value to set the setpoint to. Internally this is held by a 16bit number.
set_setpoint() will cut off the decimal values according to the value of the "dP"
parameter of the device. (dP=0..3 meaning 0..3 decimal points. only 0,1 work
for temperature sensors)
set_active_setpoint
$success = $tlk - > set_active_setpoint ( $Value ) ;
Set the value of the currently active setpoint slot.
$Value
Float value to set the setpoint to. Internally this is held by a 16bit number.
set_setpoint() will cut off the decimal values according to the value of the "dP"
parameter of the device. (dP=0..3 meaning 0..3 decimal points. only 0,1 work
for temperature sensors)
read_range
$value = $tlk - > read_range ({ mem_addresss = > (0 x0200 ..0 xFFFF || Name ) ,
MemCount = > (1..4) })
Read the values of $MemCount memory slots from $mem_address on. The Address
may be specified as a 16bit Integer in the valid range, or as an address name (see
TLK43.pm, %fields{’MemTable’}). $MemCount may be in the range 1..4. Returns
the memory as an array (one byte per field)
read_address_int
$value = $tlk - > read_range ({ mem_addresss = > (0 x0200 ..0 xFFFF || Name ) ,
MemCount = > (1..4) })
Read the value of the 16bit word at $mem_address on. The Address may be specified as a 16bit Integer in the valid range, or as an address name (see TLK43.pm,
%fields{’MemTable’}). Returns the value as unsigned integer (internally (byte1 <<
8) + byte2)
196