FAQs from Rohde & Schwarz

HMC8012 use the 2nd function to measure DCI and DCV in one setup via remote control

Question

How can I use the 2nd function to measure DCI and DCV in one setup via remote control?

Answer

Here a little program to do this. The measurement is sequential:

// Reset the device
*RST
*OPC?
// Configure the 2nd function as DCV
CONFigure:VOLTage:DC AUTO
// Configure the main function as DCI
SENSe:FUNCtion:ON CURR:DC
*OPC?
//Wait 1s till the measurement is finished
@SLEEP 1000
// Get the DCI measurement result
FETCH?
// Get the DCV measurement result
FETCH2?