LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[Q] Array element initialization

Hi.

I'm using LV5.1 and I want to do following two things.

1. Array element initialization.

In the array control user can type in some value to each element of the
array.

I want to set each element of array control to some value.

I tried using "Reinitialize to default" menu, but it made all the element
value same!

I want to set different value at each element of the array.

How can I do that?

2. File open icon link.

In "Read from spreadsheet file" user can control the file path from the
front panel.

I want to create a button in the front panel which can be connected to the
dialogue box when it is pressed.

So user can select a file to read easily.

How can I do that also?

Thanks in advance.

Hyun
-ho Lee
hhlee@hhi.co.kr
0 Kudos
Message 1 of 2
(2,783 Views)
Hyun-ho Lee wrote in message
news:3a1a5b61@newsgroups.ni.com...
> Hi.
>
> I'm using LV5.1 and I want to do following two things.
>
> 1. Array element initialization.
>
> In the array control user can type in some value to each element of the
> array.
>
> I want to set each element of array control to some value.
>
> I tried using "Reinitialize to default" menu, but it made all the
element
> value same!

For small arrays and where the initial values are not required to change
between successive uses of the program, set all your values manually and
select from the pop-up menu of the array "Make current value default". Then
make sure you save the VI. If the array is large or the default values can
change, use a local variable to write all the val
ues at runtime.

> I want to set different value at each element of the array.
>
> How can I do that?
>
> 2. File open icon link.
>
> In "Read from spreadsheet file" user can control the file path from the
> front panel.
>
> I want to create a button in the front panel which can be connected to
the
> dialogue box when it is pressed.

If the parameter passed to the "Read from spreadsheet file" is empty a file
dialog is automatically displayed.

Alternatively, this functionality is built into the Labview6 file path
control.
0 Kudos
Message 2 of 2
(2,783 Views)