06-02-2016 06:16 PM
Hi,
How to generate a value change event programmaticaly using value signal property. i have find the solutions on the forum which have solution but the problem on those solution is that property node are inside a while loop, so even if value is not changed a event is triggered which is not desired in my application. Can someone give a solution for this.
Thanks
Solved! Go to Solution.
06-02-2016 07:03 PM - edited 06-02-2016 07:04 PM
Use a Feedback Node and a Case Structure so that you only write to the property node when the value actually changes.
06-03-2016 03:46 PM
Thanks it worked for me.
Also, if the frequency of numeric value is ver fast then some changes were getting lost , as they were overwritten even before they are executed.
So i implemeted a Queue structure base on producer and consumer tempelate in examples. Then all teh events were succesfully recorded and no change was lost.
So I just wanted to ask that is this a good way to do it or you have better solution in you mind other than my approach.
Thanks again for your solution.
06-03-2016 04:06 PM
What determines the speed of change? What changes the value? What is the rate?
How long does the event take to complete the event frame when triggered?
Events have an event queue of infinite size built-in, so if you fire events faster than they can be handled, they will accumulate, tying up the code for possibly a long time. Since LabVIEW 2013, there are options to limit the queue size, though, see also this idea (now implemented)