RFmxInstr_CfgFrequencyReference
- Updated2025-10-13
- 5 minute(s) read
Configures the Reference Clock and the frequency reference source.
Syntax
int32 __stdcall RFmxInstr_CfgFrequencyReference(niRFmxInstrHandle instrumentHandle, char channelName[], char frequencyReferenceSource[], float64 frequencyReferenceFrequency)
Parameters
| Name | Direction | Type | Description | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| instrumentHandle | [in] | niRFmxInstrHandle | This parameter identifies the instrument session. This parameter is obtained from the RFmxInstr_Initialize function or the RFmxInstr_InitializeFromNIRFSASessionArray function. | ||||||||||||||
| channelName | [in] | char[] | This parameter specifies a Selector String comprising of the signal name. You do not need to use a selector string, if you want to configure this parameter for all signal instances. Example: "signal::sig1" You can use the personality specific Build String function to build the selector string. | ||||||||||||||
| frequencyReferenceSource | [in] | char[] | This parameter specifies the frequency reference source. The default value for PXIe-5840 with PXIe-5653 is RefIn2, else the default value is OnboardClock.
| ||||||||||||||
| frequencyReferenceFrequency | [in] | float64 | This parameter specifies the Reference Clock rate when the Frequency Reference Source parameter is set to ClkIn or RefIn. This value is expressed in Hz. The default value is 10 MHz. |
Returns
Returns the status code of this operation. The status code either indicates success or describes an error or warning condition. Examine the status code from each call to an RFmx function to determine if an error has occurred.
To obtain a text description of the status code and additional information about the error condition, call the RFmxInstr_GetError function.
The general meaning of the status code is as follows:
Value | Meaning |
|---|---|
0 | Success |
Positive Values | Warnings |
Negative Values | Errors |