Chapter 3 149
Easy Ways to Control Instruments
Using Direct I/O
Figure 3-17. The I/O Transaction Dialog Box
The down arrow next to WRITE shows a menu of transactions: READ,
WRITE, EXECUTE, and WAIT. To write data to an instrument, use the
default selection. Open the object menu and consult
Help to find out
about each action.
2. Use the default selections
WRITE, TEXT, DEFAULT FORMAT, and EOL
ON
. Click the input field labeled a, type "AM 5 VO" (including the
quotes), and click
OK.
You should see the transaction
WRITE TEXT "AM 5 VO" EOL as shown in
Figure 3-18. The text in quotation marks is the command that will be sent to
the HP3325B when the program runs.
Figure 3-18. A Direct I/O Transaction
In most cases, the process will be the same for sending text commands to
instruments. However, there are instruments that specify characters sent at
the end of each command or at the end of a group of commands. You need to
get this information from the instrument documentation, then include it in
the
Direct I/O Configuration dialog box.