04-22-2014 04:12 AM
I have to change the value of an indicator while the program is running.
I am attaching a VI ,
1. A double is given as input to find ptbypt derivative then I am comparing the derivative ( Threshold) to input value to give a boolean output.
I need the user to change the threshold value as needed by him.
Thanks in Advance
Solved! Go to Solution.
04-22-2014 04:35 AM
well, use the property node.
Ran
04-22-2014 06:36 AM
Wire Numeric 3 to the threashold and remove the local variable (and the wire from Numeric 1).
You've got a race condition. The result in Numeric 2 will depend on which code executes last (probably the calculation).
/Y
04-22-2014 07:43 AM
You have conflicting requirements here. You are using the derivative as the threshold, but you want the user to specify the threshold. So which is it really supposed to be? Or are you supposed to put a threshold on the derivative?