LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String Array

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 

0 Kudos
Message 1 of 6
(2,825 Views)

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

0 Kudos
Message 2 of 6
(2,821 Views)

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. 

Regards
MY
0 Kudos
Message 3 of 6
(2,819 Views)

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

0 Kudos
Message 4 of 6
(2,798 Views)

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

Message 5 of 6
(2,791 Views)

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!

0 Kudos
Message 6 of 6
(2,789 Views)