LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to let Labview create displays himself dynamically?

the number of displays can´t be fixed right now.
i want to create a huge number of display by using a menu "create a new display". everyone should show another value from a global variable (Array).
So i don´t want to use static elements - if i would do so, i had to create about 80 digital displays, 20 analog display and a few graphs. But i don´t need them every time - sometimes i need 3 digital and 15 analog displays, another time i need 60 digital an no analog displays. i only want to create 3 foundamental dislays and use them very often with different properties and pointers to the global variable!

Is this possible?
Thanks a lot...
0 Kudos
Message 1 of 3
(2,596 Views)
Hi,
As far as i know u cannot create Indicators on runtime,u have to crete them at first but make them Visiable or Invisiable in runtime by using Property nodes.
vicky
0 Kudos
Message 2 of 3
(2,596 Views)
I have in many applications done this by using the picture control. Jean-Pierre first suggested an excellent approach to this in this link.

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000A33B0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_INCLUDE_0=Ben+picture&USEARCHCONTEXT_INCLUDE_S=0&UPostedFromTimeSearchArg_0=8&UPostedFromTimeSearchArg_1=3&UPostedFromTimeSearchArg_2=2000&UPostedFromTimeSearchArg_S=4&UPostedToTimeSearchArg_0=4&UPostedToTimeSearchArg_1=9&UPostedToTimeSearchArg_2=2004&UPostedToTimeSearchArg_S=4&USEARCHCONTEXT_TIER_0=2&USEARCHCONTEXT_TIER_S=0

You can use the "Invoke Node" to get the image of a control. If you combine this method with events configured for the picture control, you can simul
ate normal LV objects.

This method takes a bit bit of work, but it does allow the GUI to be taylored as your end user requires.

You do not have to re-code all of the normal behaviour of your control elements. When a clcik is detected on a simulated device, a real LV FP object can be made visable and moved from its off-screen location to where the user clicked, and key-focus transfered. The user then interacts with the LV object that is on top of the the picture if it.

It is not easy, but it works great!

So as to:
"Is it possible to let Labview create displays himself dynamically?"

YES!

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(2,596 Views)