Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

cDAQ-9174 on MATLAB for pressure measurement

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)

 

0 Kudos
Message 1 of 2
(3,081 Views)

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.

0 Kudos
Message 2 of 2
(3,028 Views)