From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change Property of Main VI Control through a Sub VI

Solved!
Go to solution

Hi All,

 

I'm trying to do a relatively simple task of causing a control to blink if it is outside of the set limits (0-400). However, I have multiple instances where this occurs so would like to control the blinking through a Sub VI.

 

Attached is my attempt at this. It should provide a better picture of what I'm aiming to do.

0 Kudos
Message 1 of 3
(979 Views)
Solution
Accepted by topic author SDuffyLV

Create references for each FP object you might want to blink.  Cast them to generic controls (the highest ancestor class that has a "Blinking" property. ) Pass the selected  reference to the subvi .

 

Note, you should also be able to pass a reference to the main vi and set blink.speed and blink.color. double check that though,  those may not be runtime writable since they are generally set at new vi creation and apply to the vi not each control. 


"Should be" isn't "Is" -Jay
Message 2 of 3
(950 Views)
Solution
Accepted by topic author SDuffyLV

Thanks JpB. Very good information!

 

Attached is the solution.

Message 3 of 3
(904 Views)