Relative, mX+b, and Percent (%) 4-5
Programming examples - relative
Program Example 1 — This program fragment shows how to null out zero offset for the
DCV1 function. Be sure to short the Channel 1 input.
CALL SEND(7,“:syst:pres”,status%) ‘Selects DCV1 and enables
‘autorange.
CALL SEND(7,“:fetch?”,status%) ‘Fetches Channel 1 offset.
reading$ = SPACE$(80)
CALL ENTER(reading$,length%,7,status%) ‘Gets offset reading.
CALL SEND(7,“:sens:volt:ref:acq”,status%) ‘Acquires Rel Value.
CALL SEND(7,“:sens:volt:ref:stat on”,status%) ‘Enables relative for ‘DCV1.
Program Example 2 — This program fragment shows how to establish a +1V baseline for
the DCV1 function. For this baseline value, a +1V input will be displayed as 0V.
CALL SEND(7,“:syst:pres”,status%) ‘Selects DCVI function and
‘enables autorange.
CALL SEND(7,“:sens:volt:ref 1”,status%) ‘Sets a 1V rel value.
CALL SEND(7,“:sens:volt:ref:stat on”,status%) ‘Enables relative for ‘DCV1.