08-02-2019 01:04 AM
Hello all,
I am trying to use DAQmx VI to get a certain channel/pin from a module and read that channel connected to a battery to a numerical value as a voltage. How would I got about this?
Say I have 3 batteries and are connect to a different channel in a module and I want to get the reading from each of those 3 channels voltage.
Thank you all.
Solved! Go to Solution.
08-02-2019 01:09 AM - edited 08-02-2019 01:10 AM
08-02-2019 10:09 AM
Great! Thanks!
I didn't see the training part.
If I wanted to check the battery connected to my ni drive how would I go about it? I don't want to measure the data such as rate or samples but just battery check. Say I have 9 voltage connected and I want to see if labview knows that I have 9 connected.
08-02-2019 11:03 AM
What is a "ni drive"???
08-02-2019 12:55 PM
I am sorry. I mean Ni Chassis.
08-02-2019 01:14 PM - edited 08-02-2019 01:29 PM
It depends on what kind of modules you have in the chassis. Let us know what the model numbers are...
In any case, you would use the same DAQmx VIs if you are trying to read an analog voltage. The easiest way to start is open up one of the examples and modify it to suit your specific needs.
I would go with Help > Find Examples… Hardware IO > DAQmx > Analog In > Voltage - Finite Input.vi
EDIT: You can cut a lot of the example out and it will still work but even though you said you only needed a 1 point measurement it's good to learn what DAQmx can do. The example will collect 100 samples at 1KHz/Sec (so a tenth of a second) and you will have a waveform of points on your graph. This will show you a quick snapshot of the signal quality (noise, AC harmonics, etc.) so it's nice have even if you really only needed the voltage. To get one value simply un-bundle the waveform with Get Waveform Components.vi and take the mean (average) of the Y array in there.
08-05-2019 02:57 PM
This is great! Much appreciated your feedback!