02-18-2013 07:49 AM
Hello,
I call the "Ctrl Val.Set" method on a boolean of a separately running VI, and there I expect a value change event in the event structure. The value is changed, but no event is triggered. How can I enable a trigger?
02-18-2013 08:07 AM
The "set ctrl value" method was introduced way before the event structure, I believe it's for this reason that you can't expect it to fire an event (maybe I'm totally wrong on this though).
Anway, if you use this method, the event structure will not be able to catch the event, what you have to do it to open the reference to the target control and then use the "Value signaling" property, it's just a little but more code but then the event structure will be able to catch the value change event.
Hope this helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
02-18-2013 08:35 AM
Hi Titou,
yes, this is exactly what I do now. I hope we get a feedback from NI, whether is it a bug or a function.
02-18-2013 08:43 AM
@mitulatbati wrote:
Hi Titou,
yes, this is exactly what I do now. I hope we get a feedback from NI, whether is it a bug or a function.
It is expected behavior. Events for FP objects are created only by user interaction with the lone exception being the val(signaling) property that was introduced for the express purpose of programmatically generating val change events.
02-18-2013 09:16 AM
I think Jeff is right, and maybe it was not clear from my first sentence but I think it should remain like this, the "set control value" method should not fire an event.
No way NI will accept this as a bug.
Question is do you know how to get the control ref so you can use then the property node "value signaling" to fire your event?
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
02-18-2013 09:23 AM
Yes of course, I program LabVIEW for 8 years 😉
02-18-2013 11:10 AM
oups.. sorry, no offense of course 🙂
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
11-25-2013 03:07 PM
Do you mind putting an example of this up?