LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Asyncronous SubVI EVENTS Through REFERENCES

Hello!

I'm asynchronously starting a subVI, passing it references from my main VI as parameters. In this subVI, I have events associated with some controls in the main VI using these references. It was working yesterday, but now the event isn't triggering. The control doesn't have any other events associated with it. I'm unable to find the problem. What I am doing wrong?. 

 

SubVI Attached.

The main problem is with the event of the figure:

AjperezGb_0-1762778403439.png

 

Thanks for your time!!

PD: The .zip is the complete program if you need it

0 Kudos
Message 1 of 3
(132 Views)

Not sure how that could have worked. You need to register for the value change events of the controls that the references are referring to. The way it is now, the events fire when the references change.

 

dynamic event registration using control referencesdynamic event registration using control references

 

See the documentation: https://www.ni.com/docs/en-US/bundle/labview/page/dynamically-registering-for-events.html

 

0 Kudos
Message 2 of 3
(84 Views)

Thank you! Now it works

 

Probably at the beginning i was updating values somewhere else and event was never working.

 

Thank you for your time

 

 

0 Kudos
Message 3 of 3
(33 Views)