12-30-2010 03:53 AM
Hello,
I want to data log only when my tag value is increases another it will not log data in database.
So how do I do this.
12-30-2010 08:01 AM
A functional global, which will look at the current value, compare it to the previous, and if the new value is greater, signal that fact, and replace the previous value with the new value. You probably want the comparison to have a range, or a threshhold, so that it has to have increased by a certain amount before this all occurs, also are you only concerned in increasing? If you signal were a slow sinusoidal one you would register increases all the way up one side of the waveform, then once the peak was reached no more data would be saved, unless of course the amplitude increased. Do a search on functional globals, Action Engines, to see what I'm refering to as a storage mechanism.
12-30-2010 11:48 PM
Hi,
Thanks to reply, could you please give me any example of functional global & Action Engines.
12-31-2010 12:50 AM
HI Nitin,
find the link for function global : http://zone.ni.com/devzone/cda/epd/p/id/3124
12-31-2010 05:45 AM
this link do not have a example file.
12-31-2010 07:07 AM - edited 12-31-2010 07:10 AM
Hi,
In that link VIs are there in the zip attachment..Here i attched the same for you which saved in LV7.1
For details on FG : http://labviewwiki.org/Functional_Globals
Have a Happy New Year