LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to monitoring LED status in main VI, while LED changes in sub VI?

Solved!
Go to solution

In a sub VI a LED is switched on and 5 sec later the LED is switched off. How can I read the LED status in the main VI? The sub VI gives me only the end situation (LED off)

0 Kudos
Message 1 of 5
(2,345 Views)

Hi Johnny45,

you can register a user event for this control in your main vi. Another option is to send a notification if the control value changes. The main vi should be able to react on this notification.

 

Mike

Message 2 of 5
(2,329 Views)

 

 This'll work, too, if you don't mind polling.  It fits your stated question to "read the LED status".

 

main_BD.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 3 of 5
(2,311 Views)
Solution
Accepted by topic author Johnny45

Hi Johnny45,

please see attached the examples for my suggestions.

 

First Example: sub_LV85.vi and main_LV85.vi

Second Example: Example2_sub_LV85.vi and Example2_main_LV85.vi

 

Hope it helps.

Mike

Message 4 of 5
(2,285 Views)

Mike,

 

Thank you!

 

I expected the problem was easier to solve.

 

Johnny

0 Kudos
Message 5 of 5
(2,254 Views)