LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ctrl val set invoke node & value change event

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?

0 Kudos
Message 1 of 8
(5,816 Views)

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

Antoine Chalons

Message 2 of 8
(5,810 Views)

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.

 

 

0 Kudos
Message 3 of 8
(5,802 Views)

@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.


"Should be" isn't "Is" -Jay
Message 4 of 8
(5,799 Views)

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

Antoine Chalons

0 Kudos
Message 5 of 8
(5,791 Views)

Yes of course, I program LabVIEW for 8 years 😉

0 Kudos
Message 6 of 8
(5,786 Views)

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

Antoine Chalons

0 Kudos
Message 7 of 8
(5,778 Views)

Do you mind putting an example of this up?

 

0 Kudos
Message 8 of 8
(5,121 Views)