08-26-2009 03:50 AM
Hello,
How do I create a string array as in the top left of the capture attached. There doesn't seem to be anything on the string pallete for this. I am using LV 7.0 only.
Also in the capture; how do I create the two features in the lower left box. ('radio buttons' and 'no selection'). Are these both local variables. I don't know what they are!
Any help would be appreciated.
Nevica
08-26-2009 03:55 AM
Hi Nevica,
insert a array constant into your blockdiagram and insert a string constant into it.
One of them is a constant and the other is a local variable of the radio buttons control.
Mike
08-26-2009 04:00 AM
Hallo Nevica,
to create a new string-array in Block Diagram, pleae use Functions>>Array>>Array Constant and drag a string constant into it. You can then change the array size and fill elements.
You find Radio Buttons in Controls>>Boolean. No selection is the constant value of radio buttons.
08-26-2009 05:26 AM
Hello,
Can anybody tell me how I can create the radio buttons switch inside of the events structure as shown in the attachment. I don't quite understand how this works. How is it linked to the radio buttons blue box outside of the while loop. Any explanation would be appreciated.
Nevica
08-26-2009 05:46 AM
Hi Nevica,
it's a control. You can select it from a front panel palette. To get a local variable of a control/indicator, you habe to right click on it in the block diagram and select -> create local varibale.
Mike
08-26-2009 05:54 AM
nevica wrote:Hello,
Can anybody tell me how I can create the radio buttons switch inside of the events structure as shown in the attachment. I don't quite understand how this works. How is it linked to the radio buttons blue box outside of the while loop. Any explanation would be appreciated.
Nevica
Radio buttons can be found on the "Boolean" area of the Control pallete of the front panel.
Once you have radio buttons on your front panel you can add more of them by right cliking the control and select "Add radio button"
You can change the default names "Radio Selection 1" and "Radio Selection 2" to anything you want.
To create a constant from that radio button, right click it in the block diagram and select Create\Constant.
Depending on the selected radio button that code selects one element from the text array.
I hope this is an aswer to your question!