Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFInstr Digital Gain #1054

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions generated/nirfmxinstr/nirfmxinstr.proto
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ enum NiRFmxInstrAttribute {
NIRFMXINSTR_ATTRIBUTE_LO_IN_POWER = 78;
NIRFMXINSTR_ATTRIBUTE_LO_OUT_POWER = 79;
NIRFMXINSTR_ATTRIBUTE_LO_VCO_FREQUENCY_STEP_SIZE = 80;
NIRFMXINSTR_ATTRIBUTE_DIGITAL_GAIN = 84;
NIRFMXINSTR_ATTRIBUTE_LO_PLL_FRACTIONAL_MODE_ENABLED = 90;
NIRFMXINSTR_ATTRIBUTE_OPTIMIZE_PATH_FOR_SIGNAL_BANDWIDTH = 91;
NIRFMXINSTR_ATTRIBUTE_INPUT_ISOLATION_ENABLED = 92;
Expand Down
13 changes: 13 additions & 0 deletions imports/include/niRFmxInstr.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ typedef union CVIAbsoluteTime { CVITime cviTime; unsigned int u32Data[4]; } CVIA
#define RFMXINSTR_ATTR_LO_SHARING_MODE 0x00000044
#define RFMXINSTR_ATTR_NUMBER_OF_LO_SHARING_GROUPS 0x00000061
#define RFMXINSTR_ATTR_LOAD_OPTIONS 0x000000A3
#define RFMXINSTR_ATTR_DIGITAL_GAIN 0x00000054


/* -- Values for binary attributes -- */
Expand Down Expand Up @@ -2057,6 +2058,18 @@ int32 __stdcall RFmxInstr_FetchRawIQData(
int32 arraySize
);

int32 __stdcall RFmxInstr_GetDigitalGain(
niRFmxInstrHandle instrumentHandle,
char selectorString[],
float64 *attrVal
);

int32 __stdcall RFmxInstr_SetDigitalGain(
niRFmxInstrHandle instrumentHandle,
char selectorString[],
float64 attrVal
);

#ifdef __cplusplus
}
#endif
Expand Down
5 changes: 5 additions & 0 deletions source/codegen/metadata/nirfmxinstr/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,11 @@
'name': 'LO_VCO_FREQUENCY_STEP_SIZE',
'type': 'float64'
},
84: {
'access': 'read-write',
'name': 'DIGITAL_GAIN',
'type': 'float64'
},
90: {
'access': 'read-write',
'enum': 'LOPllFractionalModeEnabled',
Expand Down
Loading