Special Topics
Performing cool on-column injection onto 250-µm and 320-µm columns
178
Example program with a bar code reader and tray
This program illustrates the following:
• Using bar code reader commands to read a bottle label
• Examining the bar code reader message for a specific character and 
agitating the sample if it is found
• Making the sample injection
The program simulates a sequence by repeating these actions for a range of 
tray positions. It uses the INET_IO command from 3393A or 3396 BASIC to 
transmit commands and receive responses. The same thing could be done with 
a short subroutine that directly controls a port. 
Note the use of a dummy sequence (line 330). This sequence is set up for one 
injection of one sample; the program uses it repeatedly as it steps through the 
range of bottle numbers. The sequence is stored on a disk and loaded when 
required. See the integrator and BASIC manuals for more detail.
10   PRINT "USING THE BAR CODE READER IN AN ANALYTICAL SYSTEM"
20   PRINT
30   PRINT "THE LABEL FORMAT IS 14 CHARACTERS MAXIMUM."
40   PRINT
50   PRINT "IF A + SYMBOL APPEARS ANYWHERE ON THE LABEL, THE"
60   PRINT "SAMPLE WILL BE AGITATED BEFORE INJECTION."
70   PRINT
80   PRINT "IF THE SYSTEM CANN’T READ THE LABEL OR THE VIAL IS NOT"
90   PRINT "LABELED, IT WILL BE RETURNED TO ITS ORIGINAL POSITION."
100  PRINT
110  PRINT "THE USER MUST SUPPLY THE SAMPLER ADDRESS AND THE"
120  PRINT "NUMBERS OF THE FIRST AND LAST BOTTLES TO BE INJECTED."
130  PRINT
140  REM ******************************* DIMENSION STRING VARIABLES
150  DIM RESP$(40)     ! RESPONSE STRINGS THAT MATTER
160  DIM JUNK$(40)     ! RESPONSE STRINGS THAT DON’T MATTER
170  DIM BARCODE$(20)  ! THE BAR CODE DATA, ENCLOSED IN QUOTES
180  REM
190  REM *********************** ENTER THE SAMPLER INET ADDRESS
200  PRINT