Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx save task throws error after trying to setup AI Accelerometer Task with Sensitivity over 1000

Solved!
Go to solution

When I try to create an AI Accelerometer Channel with a Sensitivity over 1000 mV/g the DAQmx save task VI throws and error saying that the voltage max and mins are out of range even though they should be inside. As I continue to increase the sensitivity it continues to lower the the max/min voltages that it will take. For whatever reason changing the units from g to m/s^2 will also make the error go away. 

 

I am using a CDAQ with NI9234 Card trying to run an accelerometer with a sensitivity of 1007 mV/g. The AI input should be +/- 5V. 

 

Thanks!

Download All
0 Kudos
Message 1 of 3
(1,012 Views)
Solution
Accepted by topic author ugggh

You're actually asking it to create an AI task with,

  • 5 in/s^2 range
  • 4000mV/g

 

This roughly translates to,

  • 0.0129504 g
  • +/-0.0518 V

This seems reasonable but I could not find any documentation about in/s^2 as a supported unit, maybe that is causing the error.

 

I would suggest configuring with proper values for min and max in terms of acceleration and not in terms of Voltage, DAQmx automatically figures out voltage equivalents for min and max based on the sensitivity configured.

santo_13_0-1633475170431.png

 

 

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 3
(984 Views)

Thank you! 

 

The person I inherited the code from had the AI.Voltage.Range of the CDAQ wired into those terminals so I was thinking of them as voltages and not in g...

0 Kudos
Message 3 of 3
(978 Views)