The SCPI command reference in the manual lists FETCH commands and MEASURE commands. What is the difference between the two? Do the FETCH commands return the instrument settings or the measured voltages and currents? I'm using the N6733, N6735, and N6743 modules.
I am developing an automated test script in LabVIEW using the Agilent N6700B VISA Instrument Drivers, and I want to check the new setpoints against the current setpoints to determine which setting to reconfigure first.
For example: If the new OV setting is greater than the old OV, the OV setting needs to be adjusted before the voltage setting to avoid tripping the instrument. (i.e., old OV protection set at 5V, new settings are OV=10V and Voltage=6V --> OV needs to be turned up first). If the new OV setting is lower than the old OV, the voltage needs to be turned down before the OV is turned down (i.e. changing from OV=10/V=6V to OV=5V/V=3V).
To implement this logic, I need a way to return the current module settings. I'd like to use the preprogrammed drivers instead of writing and debugging the GPIB query string commands.
I am developing an automated test script in LabVIEW using the Agilent N6700B VISA Instrument Drivers, and I want to check the new setpoints against the current setpoints to determine which setting to reconfigure first.
For example: If the new OV setting is greater than the old OV, the OV setting needs to be adjusted before the voltage setting to avoid tripping the instrument. (i.e., old OV protection set at 5V, new settings are OV=10V and Voltage=6V --> OV needs to be turned up first). If the new OV setting is lower than the old OV, the voltage needs to be turned down before the OV is turned down (i.e. changing from OV=10/V=6V to OV=5V/V=3V).
To implement this logic, I need a way to return the current module settings. I'd like to use the preprogrammed drivers instead of writing and debugging the GPIB query string commands.
The only command that comes close to doing what you want to do is the *LRN? command. This command will return pretty much all of the settings of the power supply that are saved in the *SAV command. The description in the programming guide is: "This command returns a sequence of SCPI commands that can later be used to put the power system in the same state that it was in when the *LRN? query was sent. The scope of the returned settings is the same as for the *SAV and *RCL commands." The problem that I see with this approach is that it returns the full SCPI strings and you would have to parse them to get the numerical setting to do a comparison.
When you say that you are using the Agilent VISA Instrument Drivers do you mean the VXI plug and play drivers? If so I do not think that you can do what you want without using some sort of pass through command. There is no built in function to do this that I know of.