Skip to content

Commit

Permalink
update modified functions.py and enums.py and its generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
charitylxy committed Jan 8, 2024
1 parent b34ff87 commit fad85ba
Show file tree
Hide file tree
Showing 5 changed files with 196 additions and 68 deletions.
12 changes: 6 additions & 6 deletions generated/nidaqmx/_grpc_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2283,9 +2283,9 @@ def perform_bridge_shunt_cal_ex(
grpc_types.PerformBridgeShuntCalExRequest(
task=task, channel=channel,
shunt_resistor_value=shunt_resistor_value,
shunt_resistor_location=shunt_resistor_location,
shunt_resistor_select=shunt_resistor_select,
shunt_resistor_source=shunt_resistor_source,
shunt_resistor_location_raw=shunt_resistor_location,
shunt_resistor_select_raw=shunt_resistor_select,
shunt_resistor_source_raw=shunt_resistor_source,
bridge_resistance=bridge_resistance,
skip_unsupported_channels=skip_unsupported_channels))

Expand All @@ -2309,9 +2309,9 @@ def perform_strain_shunt_cal_ex(
grpc_types.PerformStrainShuntCalExRequest(
task=task, channel=channel,
shunt_resistor_value=shunt_resistor_value,
shunt_resistor_location=shunt_resistor_location,
shunt_resistor_select=shunt_resistor_select,
shunt_resistor_source=shunt_resistor_source,
shunt_resistor_location_raw=shunt_resistor_location,
shunt_resistor_select_raw=shunt_resistor_select,
shunt_resistor_source_raw=shunt_resistor_source,
skip_unsupported_channels=skip_unsupported_channels))

def read_analog_f64(
Expand Down
12 changes: 6 additions & 6 deletions generated/nidaqmx/_library_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3887,7 +3887,7 @@ def perform_bridge_shunt_cal(
if cfunc.argtypes is None:
cfunc.argtypes = [
lib_importer.task_handle, ctypes_byte_str,
ctypes.c_double, ctypes.c_long, ctypes.c_double,
ctypes.c_double, ctypes.c_int, ctypes.c_double,
c_bool32]

error_code = cfunc(
Expand All @@ -3906,8 +3906,8 @@ def perform_bridge_shunt_cal_ex(
if cfunc.argtypes is None:
cfunc.argtypes = [
lib_importer.task_handle, ctypes_byte_str,
ctypes.c_double, ctypes.c_long, ctypes.c_long,
ctypes.c_long, ctypes.c_double, c_bool32]
ctypes.c_double, ctypes.c_int, ctypes.c_int,
ctypes.c_int, ctypes.c_double, c_bool32]

error_code = cfunc(
task, channel, shunt_resistor_value, shunt_resistor_location,
Expand All @@ -3924,7 +3924,7 @@ def perform_strain_shunt_cal(
if cfunc.argtypes is None:
cfunc.argtypes = [
lib_importer.task_handle, ctypes_byte_str,
ctypes.c_double, ctypes.c_long, c_bool32]
ctypes.c_double, ctypes.c_int, c_bool32]

error_code = cfunc(
task, channel, shunt_resistor_value, shunt_resistor_location,
Expand All @@ -3941,8 +3941,8 @@ def perform_strain_shunt_cal_ex(
if cfunc.argtypes is None:
cfunc.argtypes = [
lib_importer.task_handle, ctypes_byte_str,
ctypes.c_double, ctypes.c_long, ctypes.c_long,
ctypes.c_long, c_bool32]
ctypes.c_double, ctypes.c_int, ctypes.c_int,
ctypes.c_int, c_bool32]

error_code = cfunc(
task, channel, shunt_resistor_value, shunt_resistor_location,
Expand Down
14 changes: 14 additions & 0 deletions generated/nidaqmx/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,20 @@ class ShuntCalSelect(Enum):
AAND_B = 12515 #: Switches A and B.


class ShuntCalSource(Enum):
DEFAULT = -1 #: Default
BUILT_IN = 10200 #: Built-In
USER_PROVIDED = 10167 #: User Provided


class ShuntElementLocation(Enum):
R_1 = 12465
R_2 = 12466
R_3 = 12467
R_4 = 14813
NONE = 10230


class Signal(Enum):
AI_CONVERT_CLOCK = 12484
TEN_MHZ_REF_CLOCK = 12536
Expand Down
66 changes: 66 additions & 0 deletions src/codegen/metadata/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -17134,6 +17134,72 @@
}
]
},
'ShuntCalSelect0': {
'python_name': 'ShuntCalSelect',
'values': [
{
'name': 'A',
'value': 12513
},
{
'name': 'B',
'value': 12514
}
]
},
'ShuntCalSource': {
'values': [
{
'documentation': {
'description': 'Default'
},
'name': 'DEFAULT',
'value': -1
},
{
'documentation': {
'description': 'Built-In'
},
'name': 'BUILT_IN',
'value': 10200
},
{
'documentation': {
'description': 'User Provided'
},
'name': 'USER_PROVIDED',
'value': 10167
}
]
},
'ShuntElementLocation': {
'values': [
{
'name': 'R1',
'python_name': 'R_1',
'value': 12465
},
{
'name': 'R2',
'python_name': 'R_2',
'value': 12466
},
{
'name': 'R3',
'python_name': 'R_3',
'value': 12467
},
{
'name': 'R4',
'python_name': 'R_4',
'value': 14813
},
{
'name': 'NONE',
'value': 10230
}
]
},
'Signal': {
'values': [
{
Expand Down
Loading

0 comments on commit fad85ba

Please sign in to comment.