C-Link Protocol Commands
Datalogging
Thermo Fisher Scientific
Model 48
i
Instruction Manual
B-25
Send:
set copy sp to lrec
Receive:
set copy sp to lrec ok
set copy lrec to sp
set copy srec to sp
set copy stream to sp
These commands copy the current contents of the lrec, srec, or streaming
data list into the scratch pad (sp). These commands are useful in easy
modification of current lrec, srec, or streaming data lists.
The scratch pad is a temporary memory area which is used to set up lists of
selections for lrec, srec, or streaming data items. The user can copy any of
these lists to the scratch pad, modify individual elements in the list, then
save the scratch pad back to the original list. For more information on how
to edit the scratch pad, see the “sp field” command.
The following example copies the current list of lrecs into the scratch pad.
Send:
set copy lrec to sp
Receive:
set copy lrec to sp ok
sp field
number
This command reports the variable
number
and name stored at the index in
the scratch pad list.
The scratch pad is a temporary memory area which is used to set up lists of
selections for lrec, srec, or streaming data items. The user can copy any of
these lists to the scratch pad, modify individual elements in the list, then
save the scratch pad back to the original list.
The following example shows that field 5 in the scratch pad is set to index
number 8, which is for internal temperature.
Send:
sp field 5
Receive:
sp field 5 8 int temp
set sp field
number value
number
= 1-32 for lrec and srec lists, 1-8 for streaming data lists
This command sets the scratch pad field
number
(item number in scratch
pad list) to
value
, where
value
is the index number of a variable in the
analog output variable list. Available variables and their corresponding
index numbers may be obtained using the command “list var aout”. The
“set sp field” command is used to create a list of variables which can then
be transferred into the lrec, srec, or streaming data lists, using the “set copy
sp to lrec”, “set copy sp to srec”, or “set copy sp to stream” commands.
Send:
set sp field 1 5
Receive:
set sp field 1 5 ok