This section should be used for troubleshooting a test station's GPIB configuration when a problem is indicated.
|
|
|
The following applies only to Keysight/Agilent/HP GPIB cards. See below for National Instruments GPIB cards. |
Start the Visa Assistant:
Click the hp box or the IO box on the right side of the task bar, or access it through Start > Programs > HP I_O Libraries > Visa Assistant.
Check for all expected GPIB devices:
Verify that all of the expected GPIB devices are shown in the left window. If a device is missing, correct the problem and restart VISA Assistant.
Check for basic operation of each GPIB devices:
Click the desired GPIB device to highlight it.
Click the Formatted I/O tab (expand the window if needed).
Click SCPI > *IDN?.
The model, serial number, and firmware revision should be represented in the response string. Check to see that the expected model number is contained in the response text string.
|
This will not work with the Dynamic Accuracy Test Set or the Gain Compression Test Set. |
Check for detectable options on a given device:
Click the desired GPIB device to highlight it.
Click the Formatted I/O tab, then click SCPI.
Enter *OPT, then click viQueryf.
Each expected option should be represented in the response string. A detectable option is one that can be detected via the GPIB.
|
This will not work with the Dynamic Accuracy Test Set or the Gain Compression Test Set. |
Check communication with the Dynamic Accuracy Test Set or Gain Compression Test Set:
Click the desired GPIB device to highlight it. Click the Attributes tab.
Click to open INSTR Resource Attributes, then click to open Generic INSTR Attributes.
Highlight VI_ATTR_TERMCHAR. Change the current value to 0x0D, then click Set.
Highlight VI_ATTR_TERMCHAR_EN and change the current value to VI_TRUE, then click Set.
Click the FORMATTED I/O tab, set the SCPI radio button, enter sn?, then click viQueryf. (This should return the serial number of the test set.)
Start the NI MAX (Measurement Automation Explorer):
Go to Start > Programs > National Instrument > Measurement & Auto....
Check for all expected GPIB devices:
Verify that all of the expected GPIB devices are shown in the left window. If a device is missing, correct the problem and rescan for instruments.
Check for basic operation of each GPIB device:
Right click the desired GPIB device to highlight it. Select Communicate with instrument to open a new window.
Send a "*IDN?" query.
The model number, serial number, and firmware revision should be represented in the response string. Check to see that the expected model number is contained in the response text string.
|
This will not work with the Dynamic Accuracy Test Set or the Gain Compression Test Set. |
Check for detectable options on a given device:
Send a "*IDN?" query. Each expected option should be represented in the response string.
A detectable option is one that can be detected via the GPIB.
|
This will not work with the Dynamic Accuracy Test Set or the Gain Compression Test Set. |
Check communication with the Dynamic Accuracy Test Set or Gain Compression Test Set:
Open VISA Interactive Control via the Program menu. (This is a separate program from the NI MAX used above.)
Double click on the appropriate GPIB instrument. A new window will open specifically for that GPIB interface.
Under the Template tab, select the viSetAttribute tab.
Process for changing an attribute:
Click the Execute button to make the change effective.
Enter new values for the following attributes:
VI_ATTR_TERMCHAR_EN = VI_TRUE
Select the Basic I/O tab which will allow you to read and write to the GPIB interface.
|
Be sure to terminate write strings with: Example:
|