
3156B User Manual
Programming Reference 5-24
Racal Instrument © 2005
ri3156b_set(query)_offset
Description
Sets the offset for the presently selected waveform. The active channel is selected from the Set Active Channel
panel. Channel Dependency: Independent
C Syntax
ViStatus ri3156b_set_offset (ViSession instrHandle, ViReal64 offset)
ViStatus ri3156b_query_offset (ViSession instrHandle, ViReal64 * offset)
Parameters
Name
Variable
Type
Description
instrHandle
ViSession
The Instrument Handle is used to identify the unique
session or communication channel between the driver
and the instrument. If more than one instrument of the
model type is used, this will be used to differentiate
between them. Note that the initialize function may be
used to associate multiple instrument handles with a
single instrument.
offset
ViReal64
Selects the offset. Each channel may be programmed
separately to have different offset level. Amplitude and
offset can be set independently as long as the following
relationship is ob/-(Vp-p/2 + offset) <= Amplitude
Window
Amplitude window is from -5V to +5V into 50
Ω
or double
into high impedance
Valid Range:
-4.995 to +4.995
(V into 50
Ω
)
Default Value: 0
Return Values
Displays the return status of the function call. If the function was successful, it will return a status of
VI_SUCCESS, otherwise it will return an error code. Passing the error code into the function
"ri3156B_error_message()" will return a string describing the error.