LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Wavefrom chart Y-axis offset to zero

Hello dear Labviewers..

 

I have a pressure transducer, which is connected to NI-9237.

 

How can i configure the offset in y-axis, so it starts at 0.00 y-value everytime i run the VI ?

 

Thanks in advance

 

Oesen

Best regards

Oesen
0 Kudos
Message 1 of 15
(4,468 Views)

Hi Oesen.

 

 

As far as I understand your question, you just want to add an offset to the measured value? Have you tried to manipulate the output from the DAQmx read function?

 

You can also use a custom scale:

 

What Are Custom Scales and How Do I Use Them?

http://digital.ni.com/public.nsf/allkb/0464919A11C092E386256D800079C3BB

 

Programmatically Create a Custom Scale in DAQmx

http://digital.ni.com/public.nsf/allkb/022EF0C2D86CD7F28625704C007B1E5D

 

Let me know if this is helpful, or if I misunderstood your question?

 

Best Regards

Alex E. Munkhaus
Certified LabVIEW Developer (CLD)
System Engineer
0 Kudos
Message 2 of 15
(4,449 Views)

I want the Amplitude axis (y-axis) to start at the zero value everytime i press "run the VI".

Best regards

Oesen
0 Kudos
Message 3 of 15
(4,442 Views)

Turn off y-axis aoutscaling and set the minimum to zero.

 

Lynn

0 Kudos
Message 4 of 15
(4,434 Views)

Hi johnsold

 

The y-axis can also become negative. So i dont want to set the minimum value to zero. I just want a zero starting point in y-axis everytime i run the VI.

 

 

Best regards

Oesen
0 Kudos
Message 5 of 15
(4,422 Views)

You can use a property node on the chart to set the minimum value of the y-axis.

 

Right click the chart => Create => Property Node:

Y Scale -> Range -> Minimum.

 

However, if you have autoscale turned on, this value will change as soon as you write something to the chart.

 

Can you use this?

 

Best Regards

Alex E. Munkhaus
Certified LabVIEW Developer (CLD)
System Engineer
0 Kudos
Message 6 of 15
(4,416 Views)

Thanks for the reply Alex

 

When i connect the daq device to my computer and run the VI, the y-value starts at something abou 1 psi as you can see on the picture below. Can i make a auto resetting function, which let the y-value starts at 0 psi everytime i run the VI ?

 

 

 

Starting point.png

Best regards

Oesen
0 Kudos
Message 7 of 15
(4,409 Views)

Hi Oesen.

 

 

As I understand you, you get the 1 PSI as output from DAQmx read (or the DAQ Assistant). That is the raw data, and if the raw data is 1 and you plot it, you will of course see that value on the chart...

 

However, you can make some logic saying, that if the data is less than 1.5 PSI, you simple discharge it and never plots it. Or you can say, that if the value is below 1.5 PSI, you want to plot 0 PSI instead.This is some logic decision, and has nothing to do with the chart... Would that be a solution for you?

 

Best Regards

Alex E. Munkhaus
Certified LabVIEW Developer (CLD)
System Engineer
Message 8 of 15
(4,406 Views)

Thanks for the answer Alex

 

I can definitely use that method, to plot 0 PSI, if the data is less than 1.5 PSI. So i must use Custom scale for that method ?

Best regards

Oesen
0 Kudos
Message 9 of 15
(4,404 Views)

Hi Oesen.

 

 

No, if I understand you're application correct, you can't use a custom scale. In a previous post, you said that the data can drop down below 1.5 PSI later in measurement, which is valid data that you want to plot. If you use a custom scale, the valid data in that range would be affected as well...

 

I have made an example that discharge the data if it is below 1.5. If the data has been above 1.5 once I keep plotting the data. This means that if the measured data drops down to 0.5, it will still plot that data.

 

Let me know if the example is useful?

 

Best Regards

Alex E. Munkhaus
Certified LabVIEW Developer (CLD)
System Engineer
0 Kudos
Message 10 of 15
(4,393 Views)