LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read to indicator and write from indicator?

I read a 2D-array from a txt or xml file and show this in the front panel in an indicator array.
Is it possible now to edit this array immediately (impossible with indicator I think) so afterwards I can save it back.
I think I've to convert the indicator to a control or something but don't know how to do this???
0 Kudos
Message 1 of 8
(3,163 Views)

To change the direction of an item, right click on it and select change to control or change to indicator, in order to read from an indicator or write into a control, you can use local variables, but you will have take care of race conditions.

Hope that will help

0 Kudos
Message 2 of 8
(3,149 Views)

Not really, maybe I didn't explain my question enough.
Suppose the next VI.
Start with continuous run...
The array will be load from the txt-file and immediately I would like to edit it and save it back.
(So not stop the VI running en rightmouse --> change to control)

Download All
0 Kudos
Message 3 of 8
(3,143 Views)
Why don't you try out this by using Local variable. Also the staus of Local variable can be  changed to READ or WRITE.Hope this may help you.Try this out.
0 Kudos
Message 4 of 8
(3,136 Views)

Thx, the local variable helped me a lot.
Read and afterwards write is possible now.

The only thing I still don't know is that after I read in the array,
I want to update this array.
So, first the array has to be read from the txt-file in the array.
And than I want to edit/update THIS array (so starting from the array I just read from the txt-file)
and afterwards save it...

0 Kudos
Message 5 of 8
(3,131 Views)

You can either append new array data into the existing txt file or you can read teh txt file, use array functions, ( like insert to array, delete from array, replace array elements) found on functions palette and edit/update the array

hope this helps

regards

dev

0 Kudos
Message 6 of 8
(3,119 Views)

You can either append new array data into the existing txt file or you can read the txt file, use array functions, ( like insert to array, delete from array, replace array elements) found on functions palette and edit/update the array

hope this helps

regards

Dev

0 Kudos
Message 7 of 8
(3,118 Views)

Yeah, but it would be nice if I could immediately update/edit on the just read out txt-file.
So not just replace or add an element but the array that I can edit the array displayed
as an indicator directly...

But regarding to your reply, it sounds impossible...
However thx for your reply.

0 Kudos
Message 8 of 8
(3,111 Views)