3156B User Manual
Racal Instrument © 2005
Programming Reference 5-89
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 Modulated
Waveforms
Functions Group
Use this group to define modulation type and their respective
parameters and run modes. The 3156B can generate the following
modulation: Sweep, FM, Frequency hops, FSK and AM. These
functions are listed below. Note that if one channel is programmed to
generate modulated waveform, the other channel must either generate
the same modulation type or generate an ac, none-interrupted signal
only. In modulation mode, both channels share the same run mode.
Parameter ranges and their defaults are given where applicable. The
communication session is terminated with the close function.
Modulated Waveforms Programming
3156B Function Name
Parameter(s)
Range
Default
Sweep Programming
ri3156B_set(query)_sweep_type ViInt16
sweepType
0,1
0
ri3156B_set(query)_sweep_start
ViReal64 startFrequency
0.01 to 25e6
10e3
ri3156B_set(query)_sweep_stop
ViReal64 stopFrequency
0.01 to 25e6
1e6
ri3156B_set(query)_sweep_range
ViReal64 startFrequency
0.01 to 25e6
10e3
ViReal64 stopFrequency
0.01 to 25e6
1e6
ri3156B_set(query)_sweep_time
ViReal64 sweepTime
1.4e-6 to 40
1
ri3156B_set(query)_sweep_direction
ViInt16 SweepDirection
0,1
0
ri3156B_set(query)_sweep_marker ViReal64
markerFrequency <sweep
range>
(stop-start)/2
ri3156B_apply_sweep_waveform
ViReal64 startFrequency
0.01 to 25e6
10e3
ViReal64 stopFrequency
0.01 to 25e6
1e6
ViReal64 amplitude
10e-3 to 10
5
ViReal64 offset
-4.995 to 4.995
0
ViInt16 sweepType
0,1
0
ViReal64 sweepTime
1.4e-6 to 40
1
ViInt16 SweepDirection
0,1
0
ViReal64 markerFrequency
<sweep range>
(stop-start)/2
FM Programming
ri3156B_set(query)_FM_carrier_freq ViReal64 FMcarrierFrequency
0.01 to 25e6
1e6
ri3156B_set(query)_FM_mod_freq ViReal64
FMmodulationFrequency
0.01 to 350e3
10e3
ri3156B_set(query)_FM_mod_waveform ViInt16 FMmodulationWaveform
0 to 4
0
ri3156B_set(query)_FM_freq_dev ViReal64
FMfrequencyDeviation
< carrier frequency
100e3
ri3156B_set(query)_FM_marker ViReal64
FMmarkerFrequency
< deviation
frequency> Carrier
freq
ri3156B_apply_FM_waveform
ViReal64 FMcarrierFrequency
0.01 to 25e6
1e6