Vernier LabPro User Manual

Page 67

Advertising
background image

Revision Date: 08/02/02

LabPro Technical Manual

67

Example 1: Saving and Restoring a Data Set to FLASH memory

IMPORTANT: Before performing any operation which writes or deletes items in the FLASH memory, it is
very important to check that the battery level of LabPro is sufficient. Use command {7} to do so. Also,
operations 21, 31, and 1001 may cause LabPro to automatically perform garbage collection on the FLASH
memory. Any program using these operations must be sure that garbage collection is complete before
sending any further commands (note the 2 successive ‘g’ commands).
The following example saves and labels a data set. It then shows some of the commands that are used to
see some aspects of the saved data set, and restore it from the LabPro FLASH memory.

Host

LabPro

s{201,1,0,0,83.1}

{ +3.00000E+00, +2.00000E+00,
+0.00000E+00, +4.00000E+00,
+9.90000E+01, +3.00000E+00,
+3.00000E+00, +0.00000E+00,
+4.25578E+05 }

s{201,0,0,0,2.46802}
s{201,21,0,0,1706,2002}
g

{ +2.00000E+00 }

g

{ +0.00000E+00 }

s{201,4,0,4}
s{“DATA SET A1”}
s{201,22,4}
s{201,1,0,0,83.1}

{ +4.00000E+00, +2.00000E+00,
+0.00000E+00, +4.00000E+00,
+9.90000E+01, +3.00000E+00,
+3.00000E+00, +0.00000E+00,
+4.25578E+05 }

s{201,3,0,4}

{ “DATA SET A1” }

s{201,2,0,4}

{ +1.70600E+03, +2.00200E+03 }

s{201,23,4}

Example 2: Retrieving a List from FLASH memory
Host

LabPro

s{201,1,0,0,83.1}

{ +3.00000E+00, +2.00000E+00, +0.00000E+00,
+4.00000E+00, +9.90000E+01, +3.00000E+00,
+3.00000E+00, +0.00000E+00, +4.25578E+05 }

s{201,3,1,2}

{ “TEMP B” }

s{201,34,2}

{ +1.00000E+01 }

s{201,35,2,1,5}

{ +2.97860E+01, +3.37623E+01, +3.39524E+01,
+3.41190E+01, +3.28095E+01 }

Advertising