LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Wavefrom chart Y-axis offset to zero

Hello A.E.P

 

Sorry for my late reply.

 

Can you upload the VI as a 2010 version of Labview ?

 

Thanks in advance

 

Oesen

Best regards

Oesen
0 Kudos
Message 11 of 15
(548 Views)

Sure :smileyhappy: Attached is the 2010-version.

 

Best Regards

Alex E. Munkhaus
Certified LabVIEW Developer (CLD)
System Engineer
0 Kudos
Message 12 of 15
(543 Views)

@Oesen wrote:

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 ?


Let's assume that your instrument has a random offset and you want to define the first data value as zero and treat all subsequent values relative to it.

 

All you need is keep the first value in a shift regisiter, and subtract it from all readings, including the first.

 

Here's what you could do.

 

 

Now the first point is always zero and all other readings are relative to it.

 

 

Message 13 of 15
(536 Views)

Thanks for the answers

 

I have tried to use your mehtod Altenbach:

 

block.png

 

 

The graph always start at the zero point as i want, but it doesn't move through the time axis now ?


 

 

This is NOT my method. Stop redefining "t0" with each read. That makes no sense!

 

Why do you only show pictures? Attach your actual code instead!

 

 

Best regards

Oesen
0 Kudos
Message 14 of 15
(520 Views)

Here is my VI:

 

 

Best regards

Oesen
0 Kudos
Message 15 of 15
(512 Views)