10-26-2018 03:06 AM - edited 10-26-2018 03:07 AM
@GerdW wrote:
Simple: delete that "value (sgl)" property node in the timeout event!
Now your VI will only react on user interaction…
Head bump. Completely missed that. Should ban myself from the forum on Fridays.
10-26-2018 04:09 AM
@wiebe@CARYA
I can not post complete VI but I am posting similar to that.
10-26-2018 04:30 AM
Hi Jasraj,
do you really need to check a ROI each 5ms?
Do you really need to fire a value change event in the timeout each 5ms?
Why don't you place the content of the "Code rectangle" event case into the Timeout event? No need to fire an event at all…
(RubeGoldberg: Just change the comparison mode of the Equal? function to avoid that Unbundle and OR functions…)
10-26-2018 04:55 AM
Dear GerdW,
see the code again.
Why don't you place the content of the "Code rectangle" event case into the Timeout event? No need to fire an event at all
this VI is the part of my application.
I want to execute that particular function when old value and new value are not same.
The default value of ROI is given so when I change the ROI the code rectangle will change.
Theoretically the old value and new value should not the same but I am getting the same values.
10-26-2018 05:23 AM
@jasrajrajpurohit wrote:
I want to execute that particular function when old value and new value are not same.
You are still not understanding the event structure. You are polling a value in the timeout case, so all you need is use e.g. a feedback node to see if it changes and execute a case structure accordingly (image). Events are not for that!
(As has been mentioned, the "not equal" is set to "compare aggregates" to output a single boolean).