LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

filtering data sent to write to measurement file

Solved!
Go to solution

Hi everyone, I was wondering how to implement a "filter" which prevents data to be written to the "write to measuments file" function.  Say if the incomming data is a 0 (DBL), hwo to prevent it from being written?

0 Kudos
Message 1 of 3
(2,123 Views)
Solution
Accepted by baseball07

Use a case structure.  Put your write to measurement file inside a case structure, probably in the TRUE case.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(2,120 Views)

Put the write inside a case structure and select the case wth the output of =0? from the comparison palette.  Note that many times a DBL can be very small, ~ 1E-15, but not exactly zero due to the way numbers are represented in binary in the computer.  As a result, zero comparisons often do not work the way people sometimes expect. Comparing to a range near zero may be better.

 

Lynn

Message 3 of 3
(2,119 Views)