LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Add new control references to UI Data.ctl in Continuous Measurement template?

I'm creating an application based on the Continuous Measurement and Logging template in LabVIEW 2012. This template includes a cluster of references to its front panel controls which it uses to enable and disable them according to the current state of the program, e.g. disable the Start button and enable the Stop button when logging has started, and so on.

 

I need to add some controls to the front panel and I'd like to add their references to this cluster so that I can use the same mechanism to enable or disable them, but I can't figure out how to correctly do this. At the moment I'm:

 

- Right-clicking on my new control's terminal and selecting Create>Reference

- Right-clicking on the reference and selecting Create>Constant

- Selecting the constant and choosing Cut

- Going to the front panel of the UI Data.ctl typedef and choosing Paste (which creates a control)

- Dragging the control into the UI Data cluster

 

The new reference now appears in the constant for the cluster on the main.vi block diagram, but when I try to use it for enabling or disabling the corresponding control it just doesn't do anything.

 

What am I missing please? How should I go about creating a reference constant for this control and storing it in this typedef?

0 Kudos
Message 1 of 3
(3,254 Views)

Make sure you bundle the new control reference into the UI Data.ctl cluster in the "Init UI Refs" message.

Message 2 of 3
(3,241 Views)

That's the one, thanks! I'm not sure how I missed that... Smiley Frustrated

0 Kudos
Message 3 of 3
(3,226 Views)