LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to graph increase in voltage while storing

Hi, I am relatively new to LabView and require help. 

I have a pressure sensor that takes readings in Volts and it is connected to a 6009 DAQ. I have used the DAQ assistant and have managed to get the output connected to a gauge that is converted to mmHg. The next step is to have a graph that will continuously plot the increase in pressure to time but also store it at the same time. I am currently using a waveform graph but can only get readings in seconds and it does not continuously graph the increase but rather it just shows the increase/decrease in milliseconds within that second. Any help would be greatly appreciated. Thanks

0 Kudos
Message 1 of 5
(1,514 Views)

Hi alm,

 


@alm111222 wrote:

I have used the DAQ assistant and have managed to get the output connected to a gauge that is converted to mmHg.


Which is fine so far…

(Using simple DAQmx functions instead of the DAQAssistent will make your life easier in the end!)

 


@alm111222 wrote:

The next step is to have a graph that will continuously plot the increase in pressure to time but also store it at the same time.


Do you want to  plot the "increase in pressure to time" as the mathematical derivation of the pressure over time? Or do you want to plot just the pressure (on Y axis) vs. time (on X axis)?

A graph just shows the data which you wire to it, it does not "store" any data! When you want to show a certain amount of data then you need to "store" (aka collect) it on your own…

 


@alm111222 wrote:

I am currently using a waveform graph but can only get readings in seconds and it does not continuously graph the increase but rather it just shows the increase/decrease in milliseconds within that second. Any help would be greatly appreciated.


Now it's the point where YOU should attach your current VI so WE can see what you did and where you failed.

In other words: No code, no help!

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(1,494 Views)

So basically I have built a burst pressure test rig, a sample is clamped and the pressure is gradually increased until the sample bursts. I would like for the pressure to be on the y axis and time on x axis. Ideally I want the graph to show the pressure increasing with respect to time and when the pressure suddenly drops (bursts), the maximum point on the graph is the 'burst pressure' and I need it to record highest pressure.

 

Here is my VI so WE. thanks for help.

alm111222_0-1614545780490.png

alm111222_1-1614545820630.png

 

0 Kudos
Message 3 of 5
(1,462 Views)

Hi alm,

 


@alm111222 wrote:

So basically I have built a burst pressure test rig, a sample is clamped and the pressure is gradually increased until the sample bursts. I would like for the pressure to be on the y axis and time on x axis. Ideally I want the graph to show the pressure increasing with respect to time and when the pressure suddenly drops (bursts), the maximum point on the graph is the 'burst pressure' and I need it to record highest pressure.


  • When you want to plot signal vs. time then you should learn about using waveforms in LabVIEW. (Keep in mind "waveform" is a special LabVIEW datatype, which includes not just the signal values, but also the acquisition time…)
  • To find the maximum of a signal/waveform you need to apply a MinMax function somewhere in your code. Right now there is no such function…

@alm111222 wrote:

Here is my VI so WE. thanks for help.


No, there is no VI attached in your message. All we got is an image of a VI, which is something completely different!

Would you attach an image of some text when you want to discuss C or Matlab code?

Would you present an image of your car, when you want to have it repaired at the garage?

 

As I wrote before:  I recommend to use simple DAQmx functions instead of DAQAssistent ExpressVI and the "evil twin" DDT wires!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(1,436 Views)

I miss understood you, I think I have attached the file now. Thanks. I am having trouble changing getting the values after 1 seconds and not storing it. I also do not understand what you mean by DAQmx functions.

0 Kudos
Message 5 of 5
(1,399 Views)