07-11-2019 08:30 AM - edited 07-11-2019 08:57 AM
Hello All,
I am aiming to use cDAQ-9174 with pressure transducer on Matlab. I have tested the equipment on NI-MAX and it gives reasonable results in terms of psi, bar, and pascals however when I tried to record data on Matlab, the returned data is somewhat meaningless.
I am wondering what is the unit of these results given by Matlab. When I gently touch on the sensor I can see the increase in NI-Max but in Matlab, it always gives -0.0053XXXXXXXXXXX only digits are changing. I could not find any information regarding these results.
How can I convert these values into bar, pascals or psi-like NI-MAX?
devices = daq.getDevices s = daq.createSession('ni'); s.Rate = 100; ch = addAnalogInputChannel(s,'cDAQ1Mod2', 'ai2', 'Bridge'); ch.BridgeMode = 'Full' ch.NominalBridgeResistance = 350 data = startForeground(s)
07-22-2019 03:09 PM
I would suggest posting to the mathworks forum as well. If everything is working through the NI software this is most likely an issue on the MATLAB side.