LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create control dynamically while front panel fly using Xcontrol or anyothere options but without scripting tools

Hello friends

 

           I have one doubt How to create control dynamically while front panel fly using Xcontrol or anyothere options but without scripting tools.I need to create the controls while vi is running.For example I need to create one Boolean  while VI was Fly and i need one Examples it is easy to understand.

Jayavel
0 Kudos
Message 1 of 4
(2,737 Views)

Do you have a question about creating controls dynamically, or do you doubt that you can to it?

 

You are correct do doubt it as there is no way to create controls dynamically.

 

I dont know what "front panel fly" or "while VI was fly" means.

 

Do you mean to say "Create controls on the fly"?  Then you should look at this thread.  Creating controls "on the fly"

 

 

0 Kudos
Message 2 of 4
(2,734 Views)

Hello Ravens

 

           FLY means RUNNING.

Jayavel
0 Kudos
Message 3 of 4
(2,723 Views)

You must be using a different dictionary than the rest of us.

 

You can't dynamically create controls while a VI is running.   (If I'm mistaken, then I'm sure someone else can jump in and say how it can be done.)

 

Do you have a finite number of controls you could possibly need?  What you can do is create enough controls of the type you need ahead of time.  At the beginning of your program, you hide all of those controls.  As you need to create a control, you make it visible using property nodes.  There are numerous properties you can set at run time suce as ranges, colors, captions, ...  Of course you can't wire these controls to any other bits of code ahead of time since at that time, you haven't defined what you want each one to actually control.  But if you use an event structure to detect when the values of the controls have changed, you can then programmatically pass the data off to other parts of your code using queues.  The architecture can get complicate quite fast, so you may want to look through Ben's Action Engine Nugget and other related threads for how to create mechanisms for using these controls.  Perhaps storing queue reference numbers or assign user events to each one.

0 Kudos
Message 4 of 4
(2,709 Views)