ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I zero the signal?

Hi!  This is my first programming project (LabVIEW or otherwise), and I think know what I want, but I don't know how to do it.

 

I am graphing and recording the displacement of a laser, and I want to be able to "zero" the measurements when I press a button. 

 

Right now, I'm using the Basic Serial Read Write.vi from the examples, only I added a waveform chart so we can see the displacement change in real time.  It works and plots the output from the laser sensor, but I want to be able to hit a button that captures the displacement at that moment to create a reference and subtract it from the signal as it streams in and graphs the difference between the two.   I don't know how to actually do this in LabVIEW, or if this is the best way to do it, but I'm open to suggestions!

 

Any help is greatly appreciated!

0 Kudos
Message 1 of 6
(3,917 Views)
you could zero the graph:
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 2 of 6
(3,915 Views)

Harold I think you missed what he was trying to do.

 

@OP: You are trying to calibrate the machine to subtract a baseline value, correct?

 

Take a look at the attached VI and see if it is what you wanted.

Cory K
Message 3 of 6
(3,887 Views)

thanks cory, I think I read it a bit to fast lol

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 4 of 6
(3,881 Views)

Harold Timmis wrote:

thanks cory, I think I read it a bit to fast lol

 


Its alright, reading and writing are for text programmers anyway Smiley Very Happy

Cory K
0 Kudos
Message 5 of 6
(3,859 Views)
Thanks Cory 🙂
Message Edited by kyoha on 09-23-2009 01:53 PM
0 Kudos
Message 6 of 6
(3,828 Views)