3156B User Manual
Racal Instrument © 2005
Programming Reference 5-123
Valid range: 0.01 to 25e6 (Hz)
Default: 1e6
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.
Ri3156b_set(query)_AM_mod_frequency
Description
This programs a frequency divider. The ratio parameter divides the carrier frequency. The divider accepts
integers only. The resultant value is used as the frequency of the modulating waveform. Note, however, that it
is possible to program the modulating frequency directly, using the ri3156B_set_AM_mod_freq_div()
parameter. The 3156B will accept the last parameter sent to it and therefore refrain from sending two
parameters as only the last will be accepted.
Channel Dependency: independent
C Syntax
ViStatus ri3156b_set_AM_mod_freq_div (ViSession instrHandle, ViInt16 AMModulationFrequencyDivider)
ViStatus ri3156b_query_AM_mod_freq_div (ViSession instrHandle, ViInt16 * AMModulationFrequencyDivider)
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.
AMModulationFrequencyDivider
ViInt16
Programs the frequency divider ratio for the modulating
frequency parameter.
Valid range: 2 to 4096 and (Carrier Frequency/Frequency
Divider) within Modulation Frequency range
Default: 100
Return Values
Displays the return status of the function call. If the function was successful, it will return a status of