08-14-2023 04:10 AM
Hello Guys, my issue is as follows.
I have connected my pressure sensor to my laptop via an NI9237 module and the cDAQ-9178 chassis. My LabView program is able to successfully read and record the pressure. However, at the beginning, when there is no pressure applied, the display consistently shows an offset of around 18 MPa. Therefore, I would like to only read the voltage of the pressure sensor, while the conversion is automatically handled within my VI through a 2-point calibration. Consequently, I would like to know if it's possible to use my NI module and LabView to only read the voltage without calculating the pressure?
I've used the example VI "Bridge Continuous Measurement" and set the input to "Pressure," but whenever I try to change other settings, I receive an error message indicating that my module does not support this.The datasheet for the pressure sensor P3MBP, which is being used, is attached in the appendix.
I thank you in advance
best regards, Jonas
08-14-2023 04:42 AM - edited 08-14-2023 04:43 AM
Hi Jonas,
@Jonas29 wrote:
My LabView program is able to successfully read and record the pressure. However, at the beginning, when there is no pressure applied, the display consistently shows an offset of around 18 MPa. Therefore, I would like to only read the voltage of the pressure sensor, while the conversion is automatically handled within my VI through a 2-point calibration. Consequently, I would like to know if it's possible to use my NI module and LabView to only read the voltage without calculating the pressure?
18MPa=180bar offset, quite a lot even for 5 to 15 kbar sensors…
You can apply the "2-point calibration" also on the pressure values, by scaling from (example) 180…4900bar to 0…5000bar. Why do you even want to get the (milli)volt readings?
(Btw. the voltage readings of a bridge-type sensor depend on the voltage/current supply of the bridge. You need to take that into account as well when operating on the voltage level.)
08-14-2023 05:22 AM
Hi GerdW,
We wanted to obtain the voltage readings so that we can potentially establish our own calibration using a pressure gauge. Previously, on another device, we used a tare function to eliminate this offset. However, even if we don't eliminate this offset, in the previous setup and in the new LabView program the displays show the same measurement value. The pressure also starts to increase only when we actually reach a pressure above 18 MPa; before that, only the offset is displayed.
Best Regards,
Jonas29
08-14-2023 05:44 AM
Hi Jonas,
@Jonas29 wrote:
We wanted to obtain the voltage readings so that we can potentially establish our own calibration using a pressure gauge. Previously, on another device, we used a tare function to eliminate this offset. However, even if we don't eliminate this offset, in the previous setup and in the new LabView program the displays show the same measurement value. The pressure also starts to increase only when we actually reach a pressure above 18 MPa; before that, only the offset is displayed.
From the documentation I only see readings/specs in mV/V, so you should be able to read the bridge output with respect to excitation voltage.
When your DAQmx task "only measures starting from 180bar" then there is something wrong. How did you define the mV/V conversion to pressure values? (Mind to share your VI, downconverted to LV2019?)
08-16-2023 02:39 AM
Hi GerdW,
Here is the VI for my pressure measurement and a screenshot of my Inputs. I also tried increasing the first electrical value to set the value in the graph to zero, but then the value is smaller than the actual pressure, when the pressure is increased.
08-16-2023 03:40 AM
Hi Jonas,
on your VI:
(See the attachment for some improvements.)
08-16-2023 04:07 AM
08-16-2023 04:21 AM - edited 08-16-2023 04:22 AM
Hi Jonas,
@Jonas29 wrote:
Thank you very much for the help and tips, but the issue was that I was getting far too many data points and I only need one per second. That's why I increased the buffer and calculated the averages because otherwise my VI wouldn't work. Reducing the sample rate actually didn't change anything.
The scaling options in the screenshot are the ones I'm using; the others are just the default settings when I open the VI. However, I'm not 100% sure about the mv/V setting because the pressure sensor only states that 1mV/V corresponds to 1000 MPa, and the rest I got from the datasheet I attached in the first message.
Your NI9237 offers a limited set of possible samplerates: read the fine manual!
So you better read samples at ~1.6kS/s and use the mean function to "decimate" to your desired samplerate…
According to the datasheet your sensor offers an output of 1mV/V for it's full-scale input (you didn't mention the measurement range of your sensor, but I guess it's 10kbar), so the scaling should be 1 mV/V electrical to 1000 MPa (or 10E6 Pa).
(Do you know you can set meaningful default values for your controls?)
08-16-2023 05:30 AM
Thank you for the tips. I only started programming in LabView and working with NI devices a few weeks ago. That's why I still have quite a few comprehension issues and I'm trying to properly configure and set up the devices.