From 23e1e8a172be36a0a72dff5c32a132066c1a4b2f Mon Sep 17 00:00:00 2001 From: mohit-emerson Date: Wed, 7 Oct 2026 06:06:51 +0000 Subject: [PATCH 1/4] codegen fix to take python enum names --- build/helper/documentation_helper.py | 2 +- build/helper/metadata_add_all.py | 18 +++++++------ build/templates/enums.rst.mako | 2 +- docs/nirfsa/class.rst | 34 ++++++++++++------------ docs/nirfsa/enums.rst | 25 +++++++++++++++++ generated/nidigital/nidigital/session.py | 2 +- generated/nirfsa/nirfsa/enums.py | 11 ++++++++ generated/nirfsa/nirfsa/session.py | 20 +++++++------- generated/niscope/niscope/session.py | 2 +- src/nirfsa/metadata/enums.py | 2 ++ 10 files changed, 79 insertions(+), 39 deletions(-) diff --git a/build/helper/documentation_helper.py b/build/helper/documentation_helper.py index 5c60c11e65..c376864cd2 100644 --- a/build/helper/documentation_helper.py +++ b/build/helper/documentation_helper.py @@ -439,7 +439,7 @@ def format_type_for_rst_documentation(param, numpy, config): if numpy and param['numpy']: p_type = param['numpy_type'] elif param['enum'] is not None: - p_type = ':py:data:`{}.{}`'.format(config['module_name'], param['enum']) + p_type = ':py:data:`{}.{}`'.format(config['module_name'], config['enums'][param['enum']]['python_name']) else: p_type = param['type_in_documentation'] diff --git a/build/helper/metadata_add_all.py b/build/helper/metadata_add_all.py index f28de7d9d8..77fec164d4 100644 --- a/build/helper/metadata_add_all.py +++ b/build/helper/metadata_add_all.py @@ -678,28 +678,30 @@ def _add_enum_value_python_name(enum_info, config): def fixup_enum_names(config): - '''Fix enum types for private enums + '''Fix enum types in attributes and functions to use the enum's python_name Now that we have all the metadata calculated, we need to fix any enum types in attributes and functions - where the underlying enum is private. At the time the 'python_type' was set, we hadn't yet calculated - whether the enum would be private or not. We couldn't because we needed to process all the functions and - attributes first. + to reference the underlying enum's 'python_name', which can differ from the enum's metadata key (e.g. for + private enums, which get a '_' prefix, or enums with an explicit 'python_name' override). At the time the + 'python_type' was set, 'config['enums']' wasn't populated yet, so we couldn't look this up. ''' # Check all the functions that will be code generated for f in config['functions']: if config['functions'][f]['codegen_method'] != 'no': for p in config['functions'][f]['parameters']: - if p['enum'] is not None and config['enums'][p['enum']]['codegen_method'] == 'private': - # We need to update the python type since the enum is private + if p['enum'] is not None: p['python_type'] = 'enums.' + config['enums'][p['enum']]['python_name'] + if p['type_in_documentation_was_calculated']: + p['type_in_documentation'] = p['python_type'] # Check all attributes that will be code generated for a in config['attributes']: attr = config['attributes'][a] if attr['codegen_method'] != 'no': - if attr['enum'] is not None and config['enums'][attr['enum']]['codegen_method'] == 'private': - # We need to update the python type since the enum is private + if attr['enum'] is not None: attr['python_type'] = 'enums.' + config['enums'][attr['enum']]['python_name'] + if attr['type_in_documentation_was_calculated']: + attr['type_in_documentation'] = attr['python_type'] def add_all_enum_metadata(enums, config): diff --git a/build/templates/enums.rst.mako b/build/templates/enums.rst.mako index b5cfaa372c..14aebb8cc9 100644 --- a/build/templates/enums.rst.mako +++ b/build/templates/enums.rst.mako @@ -20,7 +20,7 @@ ${helper.get_rst_header_snippet(enums[enum_name]['python_name'], '-')} .. py:class:: ${enums[enum_name]['python_name']} % for enum_value in enums[enum_name]['values']: - .. py:attribute:: ${enum_name}.${enum_value['python_name']} + .. py:attribute:: ${enums[enum_name]['python_name']}.${enum_value['python_name']} ${helper.get_documentation_for_node_rst(enum_value, config, indent=8)} % endfor diff --git a/docs/nirfsa/class.rst b/docs/nirfsa/class.rst index b80743063d..1592907cb2 100644 --- a/docs/nirfsa/class.rst +++ b/docs/nirfsa/class.rst @@ -6682,33 +6682,33 @@ input_isolation_enabled For the PXIe-5830/5831/5832, input isolation is supported for all available ports for your hardware configuration. - **Default Value**: :py:data:`~nirfsa.InputIsolationEnabled.DISABLED`, if the device configuration is supported. + **Default Value**: :py:data:`~nirfsa.IqInPortTerminalConfiguration.DISABLED`, if the device configuration is supported. **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5693, PXIe-5820/5830/5831/5832/5840/5841 **Defined Values**: - +---------------------------------------------------+---------------------------+ - | Name | Description | - +===================================================+===========================+ - | :py:data:`~nirfsa.InputIsolationEnabled.DISABLED` | Disables input isolation. | - +---------------------------------------------------+---------------------------+ - | :py:data:`~nirfsa.InputIsolationEnabled.ENABLED` | Enables input isolation. | - +---------------------------------------------------+---------------------------+ + +-----------------------------------------------------------+---------------------------+ + | Name | Description | + +===========================================================+===========================+ + | :py:data:`~nirfsa.IqInPortTerminalConfiguration.DISABLED` | Disables input isolation. | + +-----------------------------------------------------------+---------------------------+ + | :py:data:`~nirfsa.IqInPortTerminalConfiguration.ENABLED` | Enables input isolation. | + +-----------------------------------------------------------+---------------------------+ .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. The following table lists the characteristics of this property. - +-----------------------+-----------------------------+ - | Characteristic | Value | - +=======================+=============================+ - | Datatype | enums.InputIsolationEnabled | - +-----------------------+-----------------------------+ - | Permissions | read-write | - +-----------------------+-----------------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------------+ + +-----------------------+-------------------------------------+ + | Characteristic | Value | + +=======================+=====================================+ + | Datatype | enums.IqInPortTerminalConfiguration | + +-----------------------+-------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------+ .. tip:: This property corresponds to the following LabVIEW Property or C Attribute: diff --git a/docs/nirfsa/enums.rst b/docs/nirfsa/enums.rst index b335800e15..341d6d818c 100644 --- a/docs/nirfsa/enums.rst +++ b/docs/nirfsa/enums.rst @@ -1226,6 +1226,31 @@ IFfilterSelection +IqInPortTerminalConfiguration +----------------------------- + +.. py:class:: IqInPortTerminalConfiguration + + .. py:attribute:: IqInPortTerminalConfiguration.DIFFERENTIAL + + + + Sets the terminal configuration to differential. + + + + + + .. py:attribute:: IqInPortTerminalConfiguration.SINGLE_ENDED + + + + Sets the terminal configuration to single-ended. + + + + + IfConditioningDownConversionEnabled ----------------------------------- diff --git a/generated/nidigital/nidigital/session.py b/generated/nidigital/nidigital/session.py index 858375095f..5e2ca29c31 100644 --- a/generated/nidigital/nidigital/session.py +++ b/generated/nidigital/nidigital/session.py @@ -2691,7 +2691,7 @@ def _get_site_results_site_numbers(self, site_result_type): Example: :py:meth:`my_session._get_site_results_site_numbers` Args: - site_result_type (enums.SiteResultType): The type of data specified in the results array. + site_result_type (enums._SiteResultType): The type of data specified in the results array. - _SiteResultType.PASS_FAIL: Get site numbers for pass/fail data. - _SiteResultType.CAPTURE_WAVEFORM: Get site numbers for capture waveforms. diff --git a/generated/nirfsa/nirfsa/enums.py b/generated/nirfsa/nirfsa/enums.py index e0a6b7dc0c..ce79d4aaa1 100644 --- a/generated/nirfsa/nirfsa/enums.py +++ b/generated/nirfsa/nirfsa/enums.py @@ -519,6 +519,17 @@ class IFfilterSelection(Enum): ''' +class IqInPortTerminalConfiguration(Enum): + DIFFERENTIAL = 2100 + r''' + Sets the terminal configuration to differential. + ''' + SINGLE_ENDED = 2101 + r''' + Sets the terminal configuration to single-ended. + ''' + + class IfConditioningDownConversionEnabled(Enum): DISABLED = 1900 r''' diff --git a/generated/nirfsa/nirfsa/session.py b/generated/nirfsa/nirfsa/session.py index b241e59f86..9915f18cfc 100644 --- a/generated/nirfsa/nirfsa/session.py +++ b/generated/nirfsa/nirfsa/session.py @@ -2639,8 +2639,8 @@ class _SessionBase(object): **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668 ''' - input_isolation_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.InputIsolationEnabled, 1150170) - '''Type: enums.InputIsolationEnabled + input_isolation_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.IqInPortTerminalConfiguration, 1150170) + '''Type: enums.IqInPortTerminalConfiguration Specifies whether input isolation is enabled. @@ -2654,19 +2654,19 @@ class _SessionBase(object): For the PXIe-5830/5831/5832, input isolation is supported for all available ports for your hardware configuration. - **Default Value**: InputIsolationEnabled.DISABLED, if the device configuration is supported. + **Default Value**: IqInPortTerminalConfiguration.DISABLED, if the device configuration is supported. **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5693, PXIe-5820/5830/5831/5832/5840/5841 **Defined Values**: - +--------------------------------+---------------------------+ - | Name | Description | - +================================+===========================+ - | InputIsolationEnabled.DISABLED | Disables input isolation. | - +--------------------------------+---------------------------+ - | InputIsolationEnabled.ENABLED | Enables input isolation. | - +--------------------------------+---------------------------+ + +----------------------------------------+---------------------------+ + | Name | Description | + +========================================+===========================+ + | IqInPortTerminalConfiguration.DISABLED | Disables input isolation. | + +----------------------------------------+---------------------------+ + | IqInPortTerminalConfiguration.ENABLED | Enables input isolation. | + +----------------------------------------+---------------------------+ Note: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. diff --git a/generated/niscope/niscope/session.py b/generated/niscope/niscope/session.py index c89ddc81b0..641be56f29 100644 --- a/generated/niscope/niscope/session.py +++ b/generated/niscope/niscope/session.py @@ -4223,7 +4223,7 @@ def _cal_fetch_date(self, which_one): TBD Args: - which_one (enums.CalibrationTypes): + which_one (enums._CalibrationTypes): Returns: diff --git a/src/nirfsa/metadata/enums.py b/src/nirfsa/metadata/enums.py index eb61071b4d..aa79e066f2 100644 --- a/src/nirfsa/metadata/enums.py +++ b/src/nirfsa/metadata/enums.py @@ -936,6 +936,7 @@ }, 'InputIsolationEnabled': { 'codegen_method': 'public', + 'python_name': 'IqInPortTerminalConfiguration', 'values': [ { 'documentation': { @@ -1855,6 +1856,7 @@ }, 'ReferenceTriggerIqPowerEdgeSlope': { 'codegen_method': 'public', + 'python_name': 'ReferenceTriggerIqPowerEdgeSlope', 'values': [ { 'documentation': { From 9ab7899254a4fe903f4b94d5e126c696edef9a5c Mon Sep 17 00:00:00 2001 From: mohit-emerson Date: Fri, 9 Oct 2026 05:53:45 +0000 Subject: [PATCH 2/4] IqInPortTerminalConfiguration corrected --- docs/nirfsa/class.rst | 34 +++++++++++++++--------------- docs/nirfsa/enums.rst | 25 ---------------------- generated/nirfsa/nirfsa/enums.py | 11 ---------- generated/nirfsa/nirfsa/session.py | 20 +++++++++--------- src/nirfsa/metadata/enums.py | 2 +- 5 files changed, 28 insertions(+), 64 deletions(-) diff --git a/docs/nirfsa/class.rst b/docs/nirfsa/class.rst index 1592907cb2..b80743063d 100644 --- a/docs/nirfsa/class.rst +++ b/docs/nirfsa/class.rst @@ -6682,33 +6682,33 @@ input_isolation_enabled For the PXIe-5830/5831/5832, input isolation is supported for all available ports for your hardware configuration. - **Default Value**: :py:data:`~nirfsa.IqInPortTerminalConfiguration.DISABLED`, if the device configuration is supported. + **Default Value**: :py:data:`~nirfsa.InputIsolationEnabled.DISABLED`, if the device configuration is supported. **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5693, PXIe-5820/5830/5831/5832/5840/5841 **Defined Values**: - +-----------------------------------------------------------+---------------------------+ - | Name | Description | - +===========================================================+===========================+ - | :py:data:`~nirfsa.IqInPortTerminalConfiguration.DISABLED` | Disables input isolation. | - +-----------------------------------------------------------+---------------------------+ - | :py:data:`~nirfsa.IqInPortTerminalConfiguration.ENABLED` | Enables input isolation. | - +-----------------------------------------------------------+---------------------------+ + +---------------------------------------------------+---------------------------+ + | Name | Description | + +===================================================+===========================+ + | :py:data:`~nirfsa.InputIsolationEnabled.DISABLED` | Disables input isolation. | + +---------------------------------------------------+---------------------------+ + | :py:data:`~nirfsa.InputIsolationEnabled.ENABLED` | Enables input isolation. | + +---------------------------------------------------+---------------------------+ .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. The following table lists the characteristics of this property. - +-----------------------+-------------------------------------+ - | Characteristic | Value | - +=======================+=====================================+ - | Datatype | enums.IqInPortTerminalConfiguration | - +-----------------------+-------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------+ + +-----------------------+-----------------------------+ + | Characteristic | Value | + +=======================+=============================+ + | Datatype | enums.InputIsolationEnabled | + +-----------------------+-----------------------------+ + | Permissions | read-write | + +-----------------------+-----------------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------------+ .. tip:: This property corresponds to the following LabVIEW Property or C Attribute: diff --git a/docs/nirfsa/enums.rst b/docs/nirfsa/enums.rst index 341d6d818c..b335800e15 100644 --- a/docs/nirfsa/enums.rst +++ b/docs/nirfsa/enums.rst @@ -1226,31 +1226,6 @@ IFfilterSelection -IqInPortTerminalConfiguration ------------------------------ - -.. py:class:: IqInPortTerminalConfiguration - - .. py:attribute:: IqInPortTerminalConfiguration.DIFFERENTIAL - - - - Sets the terminal configuration to differential. - - - - - - .. py:attribute:: IqInPortTerminalConfiguration.SINGLE_ENDED - - - - Sets the terminal configuration to single-ended. - - - - - IfConditioningDownConversionEnabled ----------------------------------- diff --git a/generated/nirfsa/nirfsa/enums.py b/generated/nirfsa/nirfsa/enums.py index ce79d4aaa1..e0a6b7dc0c 100644 --- a/generated/nirfsa/nirfsa/enums.py +++ b/generated/nirfsa/nirfsa/enums.py @@ -519,17 +519,6 @@ class IFfilterSelection(Enum): ''' -class IqInPortTerminalConfiguration(Enum): - DIFFERENTIAL = 2100 - r''' - Sets the terminal configuration to differential. - ''' - SINGLE_ENDED = 2101 - r''' - Sets the terminal configuration to single-ended. - ''' - - class IfConditioningDownConversionEnabled(Enum): DISABLED = 1900 r''' diff --git a/generated/nirfsa/nirfsa/session.py b/generated/nirfsa/nirfsa/session.py index 9915f18cfc..b241e59f86 100644 --- a/generated/nirfsa/nirfsa/session.py +++ b/generated/nirfsa/nirfsa/session.py @@ -2639,8 +2639,8 @@ class _SessionBase(object): **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668 ''' - input_isolation_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.IqInPortTerminalConfiguration, 1150170) - '''Type: enums.IqInPortTerminalConfiguration + input_isolation_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.InputIsolationEnabled, 1150170) + '''Type: enums.InputIsolationEnabled Specifies whether input isolation is enabled. @@ -2654,19 +2654,19 @@ class _SessionBase(object): For the PXIe-5830/5831/5832, input isolation is supported for all available ports for your hardware configuration. - **Default Value**: IqInPortTerminalConfiguration.DISABLED, if the device configuration is supported. + **Default Value**: InputIsolationEnabled.DISABLED, if the device configuration is supported. **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5693, PXIe-5820/5830/5831/5832/5840/5841 **Defined Values**: - +----------------------------------------+---------------------------+ - | Name | Description | - +========================================+===========================+ - | IqInPortTerminalConfiguration.DISABLED | Disables input isolation. | - +----------------------------------------+---------------------------+ - | IqInPortTerminalConfiguration.ENABLED | Enables input isolation. | - +----------------------------------------+---------------------------+ + +--------------------------------+---------------------------+ + | Name | Description | + +================================+===========================+ + | InputIsolationEnabled.DISABLED | Disables input isolation. | + +--------------------------------+---------------------------+ + | InputIsolationEnabled.ENABLED | Enables input isolation. | + +--------------------------------+---------------------------+ Note: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. diff --git a/src/nirfsa/metadata/enums.py b/src/nirfsa/metadata/enums.py index aa79e066f2..2766570022 100644 --- a/src/nirfsa/metadata/enums.py +++ b/src/nirfsa/metadata/enums.py @@ -936,7 +936,6 @@ }, 'InputIsolationEnabled': { 'codegen_method': 'public', - 'python_name': 'IqInPortTerminalConfiguration', 'values': [ { 'documentation': { @@ -1008,6 +1007,7 @@ }, 'IqInPortTerminalConfiguration': { 'codegen_method': 'public', + 'python_name': 'IqInPortTerminalConfiguration', 'values': [ { 'documentation': { From 1b68c63233522a12940848975c054d209fd8bf10 Mon Sep 17 00:00:00 2001 From: mohit-emerson Date: Fri, 9 Oct 2026 06:20:14 +0000 Subject: [PATCH 3/4] doc update --- build/helper/metadata_add_all.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build/helper/metadata_add_all.py b/build/helper/metadata_add_all.py index 77fec164d4..3d85e7f97b 100644 --- a/build/helper/metadata_add_all.py +++ b/build/helper/metadata_add_all.py @@ -681,8 +681,7 @@ def fixup_enum_names(config): '''Fix enum types in attributes and functions to use the enum's python_name Now that we have all the metadata calculated, we need to fix any enum types in attributes and functions - to reference the underlying enum's 'python_name', which can differ from the enum's metadata key (e.g. for - private enums, which get a '_' prefix, or enums with an explicit 'python_name' override). At the time the + to reference the underlying enum's 'python_name'. At the time the 'python_type' was set, 'config['enums']' wasn't populated yet, so we couldn't look this up. ''' # Check all the functions that will be code generated From 2d59eee8e33eccd7d4f8f341c0642f51e4767fed Mon Sep 17 00:00:00 2001 From: mohit-emerson Date: Fri, 9 Oct 2026 06:34:34 +0000 Subject: [PATCH 4/4] attr, function changes --- docs/nirfsa/enums.rst | 50 +++++++++++++++---------------- generated/nirfsa/nirfsa/enums.py | 22 +++++++------- src/nirfsa/metadata/attributes.py | 4 +-- src/nirfsa/metadata/enums.py | 4 +-- src/nirfsa/metadata/functions.py | 2 +- 5 files changed, 41 insertions(+), 41 deletions(-) diff --git a/docs/nirfsa/enums.rst b/docs/nirfsa/enums.rst index b335800e15..9122e80bcd 100644 --- a/docs/nirfsa/enums.rst +++ b/docs/nirfsa/enums.rst @@ -1226,6 +1226,31 @@ IFfilterSelection +IqInPortTerminalConfiguration +----------------------------- + +.. py:class:: IqInPortTerminalConfiguration + + .. py:attribute:: IqInPortTerminalConfiguration.DIFFERENTIAL + + + + Sets the terminal configuration to differential. + + + + + + .. py:attribute:: IqInPortTerminalConfiguration.SINGLE_ENDED + + + + Sets the terminal configuration to single-ended. + + + + + IfConditioningDownConversionEnabled ----------------------------------- @@ -1321,31 +1346,6 @@ InputPort -IqInPortTerminalConfiguration ------------------------------ - -.. py:class:: IqInPortTerminalConfiguration - - .. py:attribute:: IqInPortTerminalConfiguration.DIFFERENTIAL - - - - Sets the terminal configuration to differential. - - - - - - .. py:attribute:: IqInPortTerminalConfiguration.SINGLE_ENDED - - - - Sets the terminal configuration to single-ended. - - - - - LinearInterpolationFormat ------------------------- diff --git a/generated/nirfsa/nirfsa/enums.py b/generated/nirfsa/nirfsa/enums.py index e0a6b7dc0c..db345e3fcc 100644 --- a/generated/nirfsa/nirfsa/enums.py +++ b/generated/nirfsa/nirfsa/enums.py @@ -519,6 +519,17 @@ class IFfilterSelection(Enum): ''' +class IqInPortTerminalConfiguration(Enum): + DIFFERENTIAL = 2100 + r''' + Sets the terminal configuration to differential. + ''' + SINGLE_ENDED = 2101 + r''' + Sets the terminal configuration to single-ended. + ''' + + class IfConditioningDownConversionEnabled(Enum): DISABLED = 1900 r''' @@ -560,17 +571,6 @@ class InputPort(Enum): ''' -class IqInPortTerminalConfiguration(Enum): - DIFFERENTIAL = 2100 - r''' - Sets the terminal configuration to differential. - ''' - SINGLE_ENDED = 2101 - r''' - Sets the terminal configuration to single-ended. - ''' - - class LinearInterpolationFormat(Enum): MAGNITUDE_AND_PHASE = 4001 r''' diff --git a/src/nirfsa/metadata/attributes.py b/src/nirfsa/metadata/attributes.py index 16673ede19..6f9f786113 100644 --- a/src/nirfsa/metadata/attributes.py +++ b/src/nirfsa/metadata/attributes.py @@ -2353,7 +2353,7 @@ 'Description' ] }, - 'enum': 'ReferenceTriggerIqPowerEdgeSlope', + 'enum': 'ReferenceTriggerIQPowerEdgeSlope', 'lv_property': 'Triggers:Ref:IQ Power Edge:Slope', 'name': 'IQ_POWER_EDGE_REF_TRIGGER_SLOPE', 'type': 'ViInt32' @@ -3346,7 +3346,7 @@ 'Description' ] }, - 'enum': 'IqInPortTerminalConfiguration', + 'enum': 'IQInPortTerminalConfiguration', 'lv_property': 'Device Specific:Vector Signal Transceiver:IQ In Port:Terminal Configuration', 'name': 'IQ_IN_PORT_TERMINAL_CONFIGURATION', 'type': 'ViInt32' diff --git a/src/nirfsa/metadata/enums.py b/src/nirfsa/metadata/enums.py index 2766570022..cebe3d6c54 100644 --- a/src/nirfsa/metadata/enums.py +++ b/src/nirfsa/metadata/enums.py @@ -1005,7 +1005,7 @@ } ] }, - 'IqInPortTerminalConfiguration': { + 'IQInPortTerminalConfiguration': { 'codegen_method': 'public', 'python_name': 'IqInPortTerminalConfiguration', 'values': [ @@ -1854,7 +1854,7 @@ } ] }, - 'ReferenceTriggerIqPowerEdgeSlope': { + 'ReferenceTriggerIQPowerEdgeSlope': { 'codegen_method': 'public', 'python_name': 'ReferenceTriggerIqPowerEdgeSlope', 'values': [ diff --git a/src/nirfsa/metadata/functions.py b/src/nirfsa/metadata/functions.py index 18aea8b009..5d0eee1aee 100644 --- a/src/nirfsa/metadata/functions.py +++ b/src/nirfsa/metadata/functions.py @@ -603,7 +603,7 @@ 'documentation': { 'description': 'Specifies whether the device detects a positive or negative slope on the trigger signal. The default value is NIRFSA_VAL_RISING_SLOPE.\n\n| Value | Description |\n|:--------------------------------|:-------------------------------------------------|\n| NIRFSA_VAL_RISING_SLOPE (1000) | NI-RFSA detects a rising edge (positive slope). |\n| NIRFSA_VAL_FALLING_SLOPE (1001) | NI-RFSA detects a falling edge (negative slope). |', }, - 'enum' : 'ReferenceTriggerIqPowerEdgeSlope', + 'enum' : 'ReferenceTriggerIQPowerEdgeSlope', 'name': 'slope', 'type': 'ViInt32', 'use_array': False,