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

add_ai_rosette_strain_gage_chan parameter rosette_meas_types has the wrong type #483

Open
zhindes opened this issue Feb 1, 2024 · 0 comments

Comments

@zhindes
Copy link
Collaborator

zhindes commented Feb 1, 2024

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant