Jump to content

How to keep track of multiple UI control references


doradorachan

Recommended Posts

Hey guys,

 

So I was just looking through one of the presentations of NI Week 2014,

and this one talks about some cool tricks about UI.

 

Creating Highly Innovative User Interfaces With LabVIEW - Demos

 

My question is about specifically about one of the demos.

In one of his demo, he talks about an alternative way of storing UI refs compared to the typical "Create UI refs and store them into a cluster,

then unbundle the cluster when you need the UI refs"

 

I was just wondering if anybody had another way of controlling UIs.

I still use the cluster method but sometimes it takes a lot of spaces in the block diagram and was wondering if there was a better way

post-52305-0-57162200-1410765310_thumb.p

Link to comment

In one of my recent projects I used an actor (based on NI's actor model) to update UI elements. It basically consists of a class with all necessary control references in the private data (accessible only before launching the actor by using property nodes). Messages were implemented to update each specific control. Due to that it was possible to update the UI without blocking tasks, since the UI thread was handled by the actor core.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.