LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I change values in an array interactively

I've loaded a data profile as an array of numbers.
Some of the array values I want to change interactively and work with the thus modified array.
I don't know how to transfer the data from the Input-Indicator to an Output-Control.


Thanks for every hint.
0 Kudos
Message 1 of 5
(2,665 Views)


@ottomueller wrote:
I don't know how to transfer the data from the Input-Indicator to an Output-Control.

Inputs are controls and outputs are indicators. Could you clarify what you mean by "Input-Indicator" or "Output-Control"???

 

In general, you transfer data from a control to an indicator using a wire between them ;).

Maybe I don't understand the question. Could you attach a simple example of your program?

0 Kudos
Message 2 of 5
(2,658 Views)
thanks for answering.
Transfering data from an control to an indicator is really a simple job.

But the other way round, I don't now how to manage:
I've imported data from a text file into an array. Some of the numbers of the array I want to modify and use the modified array for further tasks in the application.
Therefore the key question is: how to initialize an array with values depending from the application?

Hope it's now more clear what the problem is.
0 Kudos
Message 3 of 5
(2,640 Views)
If you need to modify the data in a control programmatically, you can write to a local variable of the control or write to a value property of the control.
 
To modify an existing array, you don't need any of this. Take your array and feed it into a shift register of a loop. Inside the loop you replace the desired array elements until you are satisfied. After the loop ends, the modified array exits the shift register on the right for further processing.
0 Kudos
Message 4 of 5
(2,623 Views)
Here's a simple example how to modify an existing array as mentioned above. (LabVIEW 7.0)
0 Kudos
Message 5 of 5
(2,622 Views)