Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get analog input current ranges using NIDAQmx library in python

Solved!
Go to solution

Hi,

As I am working on a program using nidaqmx library in python, I need to get analog input current range values for the specified device. I have referred the NIDAQmx library and found out that there is a class "nidaqmx.system.device.Device(name,*,grpc_options=None)", where we could get the property "ai_current_rngs". It says, "It indicates pairs of current input ranges supported by this device. Each pair consists of the low value, followed by the high value.". I used this property, but I am getting an empty list.

I tried to use another property "ai_voltage_rngs" and got a list of voltage values for the specified device.

So, is there a way to get current ranges for the specific device. Any thoughts or direction will be appreciated.

0 Kudos
Message 1 of 7
(1,387 Views)

What DAQmx device are you trying with? did you verify if your device support inbuilt current measurement?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 7
(1,334 Views)

Hi,

Thank you for responding. Yes, I am using PXIe 4300 card 8 AI. It does support both voltage and current measurement. I am able to get voltage range values but not for the current range.

0 Kudos
Message 3 of 7
(1,320 Views)
Solution
Accepted by topic author ruby@7

The PXIe-4300 has a 10 V maximum measurement range that can be expanded to 300 V when using a TB-4300B. The PXIe-4300 can
be used to measure current when using a TB-4300C, which provides 50 Ω resistors between the AI+ and AI- terminals to convert current to voltage for current measurements.

Reference: NI PXIe-4300 User Manual

 

PXIe-4300 itself does not support current measurement hence it does not return the input current range.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
Message 4 of 7
(1,313 Views)
Solution
Accepted by topic author ruby@7

ZYOng gave you the answer.

 

To be clear, your driver will return the current ranges if the DAQ has internal current sense resistors. Try connecting the accessory to the card, check in NI MAX if the accessory is detected & configured, may be, the driver may return the ideal current ranges based on the accessory connected.

 

santo_13_0-1689558409635.png

 

You can derive the current ranges (for 4300 w/ TB 4300C) from the supported voltage ranges and the sense resistor value.

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 5 of 7
(1,291 Views)

Oh, got it. Thank you so much for your time.

0 Kudos
Message 6 of 7
(1,274 Views)

Thank you so much for clearing the doubt.

0 Kudos
Message 7 of 7
(1,272 Views)