GPIB Communication Parameters
You should configure the GPIB object to match your instrument's communication configuration, which you typically set with its front panel.
Address
The following parameters are associated with configuring the GPIB address
- Select an Adaptor - You can create a GPIB object associated with an Agilent, Measurement Computing Corporation (MCC), CEC, Keithley, IOTech, or National Instruments (NI) GPIB controller.
- Communication Address - Each GPIB instrument must have a unique board index and primary address. An optional secondary address can also be used.
- Board Index - Specify the index number of the GPIB board (controller).
- Primary Address - Specify the instrument's primary address. The value can range from 0 to 30.
- Secondary Address - Specify the instrument's secondary address. The value can range from 96 to 126, or it can be 0 indicating that no secondary address is used.
Termination
The following parameters are associated with completing read and write operations.
- EOSMode - Specify when the End-Of-String (EOS) character is used.
- none - The EOS character is ignored.
- read - The EOS character is used to complete read operations.
- write - The EOS character is included with each write operation. When the EOS character is received by the instrument, its EOI line is asserted.
- read&write - The EOS character is used for both read and write operations.
- EOSCharCode - Specify the EOS character. The value can range from 0 to 255, or you can specify the equivalent ASCII character. For example, 13 or 'CR' represents a carriage return, while 10 or 'LF' represents a line feed. EOSCharCode replaces \n wherever it appears in the command sent to the instrument.
- EOIMode - Specify if the EOI line is asserted at the end of a write operation. The choices are:
- Assert the EOI line at end of write
- Don't assert the EOI line at end of write
- CompareBits - Specify the number of bits that must match the EOS character to complete a read or write operation, or to assert the EOI line. The choices are:
- Match the lower 7 bits
- Match all 8 bits