3156B User Manual
Programming Reference 5-38
Racal Instrument © 2005
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.
The Standard
Waveforms
Functions Group
This group is used to control the 3156B standard waveform shapes,
their respective parameters, frequency, amplitude and offset. If both
channels are set to operate in standard waveforms mode, each
channel can be programmed independently to output different
waveform shape. Parameter ranges and their defaults are given where
applicable. The communication session is terminated with the close
function.
Standard Waveforms Programming
3156B Function Name
Parameter(s)
Range
Default
ri3156B_set(query)_standard_waveform
ViInt16 standardWaveform
0-9
0
ri3156B_set(query)_frequency
ViReal64 frequency
0.01 to 25e6
1e6
ri3156B_query_std_sample_clock_freq ViPReal64 stdSampleClockFrequency
ri3156B_query_std_waveform_numb_points ViPInt16 standardWaveformPoints
Sine Wave Functions
ri3156B_set(query)_sine_wave_phase
ViReal64 phase
0 to 359.95
0
ri3156B_apply_sine_wave
ViReal64 frequency
0.01 to 25e6
1e6
ViReal64 amplitude
10e-3 to 10
5
ViReal64 offset
-4.995 to 4.995
0
ViReal64 phase
0 to 359.95
0
Triangle Wave Functions
ri3156B_set(query)_triangular_wave_phase
ViReal64 phase
0 to 359.95
0
ri3156B_apply_triangular_wave ViReal64 frequency
0.01 to 25e6
1e6
ViReal64 amplitude
10e-3 to 10
5
ViReal64 offset
-4.995 to 4.995
0
ViReal64 phase
0 to 359.95
0
Square Wave Functions
ri3156B_set(query)_square_wave_duty_cycle
ViReal64 dutyCycle
0 to 99.99
50
ri3156B_apply_square_wave
ViReal64 frequency
0.01 to 25e6
1e6
ViReal64 amplitude
10e-3 to 10
5
ViReal64 offset
-4.995 to 4.995
0
ViReal64 dutyCycle
0 to 99.99
50
Half Cycle Wave Functions
ri3156B_set(query)_half_cycle_mode ViBoolean HalfCycleMode
0-1 (OFF, ON)
0
ri3156B_set(query)_half_cycle_delay ViReal64 HalfCycleDelay
0, 500e-9 to 21
1e-6
ri3156B_apply_half_cycle_sine_wave
ViReal64 frequency
0.01 to 1e6
500e3