Model 2750 Multimeter/Switch System User’s Manual Rel, Math, Ratio, Channel Average, dB 5-15
Math programming examples
Example #1 — The following command sequence performs the mX+b calculation for
channels 101 and 102 of the Model 7700. Keep in mind that after CALC:DATA? is sent,
the Model 2750 has to be addressed to talk to send the math result to the computer.
CALC:FORM MXB ' Select mX+b calculation.
CALC:KMAT:MMF 2 ' Set ‘m’ factor to 2.
CALC:KMAT:MBF 100 ' Set ‘b’ factor to 100.
CALC:STAT ON ' Enable math calculation.
ROUT:CLOS (@101) ' Close channel 101.
CALC:DATA? ' Read mX+b result for channel 101.
ROUT:CLOS (@102) ' Close channel 102.
CALC:DATA? ' Read mX+b result for channel 102.
Example #2 — The following command sequence configures channels 101 through 110
of the Model 7700 to perform the percent calculation when they are scanned.
CALC:FORM PERC,(@101:110) ' Select percent calculation.
CALC:KMAT:PERC 100,(@101:110) ' Set reference to 100.
CALC:STAT ON,(@101:110) ' Enable math calculation.
2750-900-01.book Page 15 Wednesday, August 3, 2011 7:56 AM