LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I zero out offset voltage at the start of the program?

I have a simple program that reads a voltage input and outputs the results to a file. The voltage has an offset (which changes from test to test), and I am interested in zeroing out this value at the start of acquisition. I could use an example of how to do this. Thanks.
0 Kudos
Message 1 of 2
(3,824 Views)
Try this simple method...

Right click on the icon which represents the offset voltage. Select create: Invoke Node.
Use the finger pointer and click on the "Method" of the newly created Invoke Node. Choose "Reinit To Dflt"

Place this Invoke Node at the beginning of your vi by running the Error In through it.

And "voila"... everytime you run your vi, it will reinitialize it to the default value... which can be zero.

You can use the same trick to re-initialize values if a certain condition is met within your vi.

-have fun-

JLV
Message 2 of 2
(3,824 Views)