LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Initializing combo box at run time

Hi,
I am trying to initialize combo box from an array (decimate array ).
Why this is not working ?
 
Thanks to anyone that can help.
0 Kudos
Message 1 of 7
(3,222 Views)
I think that first you should deliver the file that is readed by your vi, because that could be the problem.
Moreover, maybe you should specify what you intend for "not working" and also "initialize" a combo box, because if your aim is to fill the combo's menu you have to write the 'Strings[]' property of the combo box (right-click on it --> Create --> Property Node)

Hope this helps you
bye
manga
0 Kudos
Message 2 of 7
(3,219 Views)
Hi,
 
Thanks i attached the input file.
 
Yes,by initilizing i mean to fill the combo box with the stream that is connected to its input .
I did not understand how to create the property node .
Thanks again
0 Kudos
Message 3 of 7
(3,215 Views)
It's important to distinguish two different tasks:

(A) Write a particular value to a combo box
(B) Define a set of possible values for a combo box

You wanted (B) but were doing (A) actually.
See the attached vi too see a Property Node in action.

Cheers,
manga
Message 4 of 7
(3,206 Views)
Hi ,
Thanks for your time !!
0 Kudos
Message 5 of 7
(3,198 Views)

within the sequence a set of outputs is used with little houses in it . so it could be  uses as a input in  the  third frame. could you tell me how thats works , or where i can find documentation . its a long time ago i programmed with labview , and i cannot remember we used this. 

 

many thanks 

 

Robert 

0 Kudos
Message 6 of 7
(792 Views)

robert.nijhof@terbeke.com wrote:

within the sequence a set of outputs is used with little houses in it . so it could be  uses as a input in  the  third frame. could you tell me how thats works , or where i can find documentation .


It's a local variable. You could right click it and press help to get more details. Opening the context help window (Ctrl+H) and hovering over things can also help to see what they are.

 

In this specific example the local variable is completely unnecessary, because the code is writing a value to the indicator and then immediately using the local variable to read the current value from the indicator. Instead, the output of the function could be wired in directly to the property node, and then you don't even need the sequence. In fact, in this example you could get rid of the sequence and the decimated array 2 indicator entirely.

 

 

If you haven't used LV in a long time, you might want to do some brushing up with some tutorials. At some point they will probably tell you that using local variables in LV is usually not a good idea, primarily because it's easy to create race conditions if you're not aware of how things work.


___________________
Try to take over the world!
0 Kudos
Message 7 of 7
(786 Views)