07-29-2009 11:28 PM
Dear Friends,
I have a small Issue, I have a program, which will generate some floating values Dynamically. Some values will be zero and some other values will not be equal to zero have to filter the values which are non Zero and I have to write those in to a file.
Is there any control in the labview to filter out the values which are not equal to zero. Could you please help me on this?
Thank you,
Best Regards,
Rathan
07-29-2009 11:36 PM - edited 07-29-2009 11:37 PM
07-30-2009 01:08 AM
Can you post a screen shot till the generating part. We can suggest how to eliminate the zeros? r u getting it in a array?
05-06-2011 08:34 AM
i read your post,it was good and i tried an example. But what happens if the value zero is in the range between 10^12and 10^ -12. I have to eliminate the value (zero) in my written file with specified range. Any help?
05-06-2011 09:56 AM
@2249kumar wrote:
i read your post,it was good and i tried an example. But what happens if the value zero is in the range between 10^12and 10^ -12. I have to eliminate the value (zero) in my written file with specified range. Any help?
Do you know how big 10^12 is? Zero will never be in the range 10^12 and 10^-12, by definition and the current state of the known universe (as well as simple mathematics).
You said you tried an example. Did it work? If not, why not? What exactly did you try? Are you doing the same thing the original poster of this thread did, or are you trying to remove "zeros" from a file and then write the file back. Details, please.
05-06-2011 10:03 AM
@2249kumar wrote:
i read your post,it was good and i tried an example. But what happens if the value zero is in the range between 10^12and 10^ -12. I have to eliminate the value (zero) in my written file with specified range. Any help?
0 is not in the range 10^12 to 10^-12. 10^-200 is still not 0, although it's getting very close. 🙂
/Y
05-06-2011 10:24 AM
In "Range and coerce" block i set to 10^12 as upper limit and 10^-12 as lower limit... when the input value 'X' is zero??
05-06-2011 10:26 AM
hum... ,try the log base ten of the number first then use machine epsilon....
05-06-2011 01:41 PM
@2249kumar wrote:
In "Range and coerce" block i set to 10^12 as upper limit and 10^-12 as lower limit... when the input value 'X' is zero??
I don't understand what this means. All you did was upload one of the examples. 10^12 = 1 followed by 12 zeros. That's 1,000,000,000,000. Do you know math?
As explained, use the Machine Epsilon constant.
To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.
05-06-2011 02:42 PM
@2249kumar wrote:
i read your post,it was good and i tried an example. But what happens if the value zero is in the range between 10^12and 10^ -12. I have to eliminate the value (zero) in my written file with specified range. Any help?
10^12 = 1 000 000 000 000
10^ -12 = 0.00 000 000 000 1