nidaqmx-python
nidaqmx-python copied to clipboard
add_ai_rosette_strain_gage_chan parameter rosette_meas_types has the wrong type
The current signature:
def add_ai_rosette_strain_gage_chan(
self, physical_channel, rosette_type, gage_orientation,
rosette_meas_types, name_to_assign_to_channel="", min_val=-0.001,
max_val=0.001,
strain_config=StrainGageBridgeType.QUARTER_BRIDGE_I,
voltage_excit_source=ExcitationSource.INTERNAL,
voltage_excit_val=2.5, gage_factor=2.0,
nominal_gage_resistance=350.0, poisson_ratio=0.3,
lead_wire_resistance=0.0):
The docstring says:
rosette_meas_types (List[int]): Specifies information about
the rosette configuration and measurements.
The code matches the docstring and converts the measurement types to an int array:
rosette_meas_types = numpy.int32(rosette_meas_types)
The actual type should be List[nidaqmx.constants.StrainGageRosetteMeasurementType]