LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I dynamically "create" controls (or indicators)?

I did implement my VI to allow dynamic control edition. The exercice to put back controls data back to "record" is left to the viewer.
Enjoy!


LabVIEW, C'est LabVIEW

Message 11 of 19
(14,937 Views)
I had a similar case as you have, the difference being that i had to programmatically add indicators to a front panel. The way i did it was to create an array of indicators and control the size of the array. you can use the property (or attribute) node and select the number of columns as the property , then change that to "write" and add the array size at its input. That should add the controls to your front panel depending on your requirements and it would do it programmatically.

Hope that helps
Good Luck."
0 Kudos
Message 12 of 19
(14,937 Views)
I had something along these lines... My VI started with a database query to return unique instances of values within a column and I had to present them to the user as choices. It was done in LV 6.1 so there was no way to check a multi-column listbox double-click with the event structure (couldn't use polling.)

I ended up creating an array of clusters. the cluster had a radio button and a text box. I used the nice-looking table indicator with the verical scrollbar and it worked pretty well. It's was a bit of a pain having the added level of complexity with the cluster, but the customer was hung up on the interface.
0 Kudos
Message 13 of 19
(14,937 Views)
Hello Jean-Pierre,
 
I need to create multiple number of three types control viz  ring control(with different list for each one of these), numeric control and a boolean control dynamically. Basically, what I am trying to do is read a spread sheet and then based upon the spread sheet information, I would create certain number of a certain type of control. I have been playing around with the vi you posted here but I could not find a way to accomodate a ring control. You have used a ring control but it looks like its a different type of ring than a regular one where I can select one item from a list of multiple items. You are probably busy with your own stuff but I would really really appreciate it if you could help me figure this out.
 
Thanks in advance.
 
Ananda
0 Kudos
Message 14 of 19
(15,017 Views)
I have modified the example to use text rings. You need to add the list of strings of the ring for each different ring.


LabVIEW, C'est LabVIEW

0 Kudos
Message 15 of 19
(14,996 Views)
Here is my problem:
I have to find diffrent frequencies given by an accelerometer and display them somewhere in the front panel.
The number of these frequencies can variate, so i have to display the dynamicaly, with differents colors.
How can i do?
If you can give me some examples...
I use Labview 7.0 on winXP.
Thanks.

0 Kudos
Message 16 of 19
(14,706 Views)

Hello,

You could display your values in a multicolumn list box (with the Item Names property) and change cell foreground and background colors (with appropriately named properties, and the active cell property).  See the attached screenshot for more help.

Best Regards,

JLS

Best,
JLS
Sixclear
0 Kudos
Message 17 of 19
(14,685 Views)
Thank you for that help but there is a problem:
the colors must be diffrent for each detections.
I dont' thinks the multilcolumn list can do that, doesn't it?
Thanks give me other solutions if some one exist.

0 Kudos
Message 18 of 19
(14,674 Views)
Hello Guig,
 
Attached is an example of what I meant, including comments on the front panel describing the controls' affects on the multicolumn listbox.
 
I hope it helps!
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 19 of 19
(14,651 Views)