Skip to content

Commit

Permalink
RFInstr Digital Gain (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
alenkani authored Apr 30, 2024
1 parent 98bacd3 commit 67fa807
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
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

0 comments on commit 67fa807

Please sign in to comment.