LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arrays

Hi
 
I need to  Upload an array(for ex: 100 values) to a drive(some location in drive) and need to download the values from same location.
 
Thanks
0 Kudos
Message 1 of 9
(3,413 Views)
OK, so write the data to a file and read it back later from the same file.
 
Easiest would be to use a binary file. What have you tried so far?
0 Kudos
Message 2 of 9
(3,411 Views)

Do you mean something like this? for the write to file portion...

 



Message Edited by JoeLabView on 05-27-2008 08:24 PM
0 Kudos
Message 3 of 9
(3,409 Views)
Thanks Joe and altenbach
 
Joe,its somewhat like urs.just an array with assigned values.
For ex,if i need to assign some 10000 values in array what are the possibilities to do.
 
Thanks
0 Kudos
Message 4 of 9
(3,403 Views)

Have a look at this very simple example..

 

0 Kudos
Message 5 of 9
(3,402 Views)

Oops... I just read your post after I posted the example.. 

All you need to do is swap the for loop with 100 iterations with your own code..  You can have 2D array as well.

For 10000 elements, you can also write it as binary file..  Are the elements all numeric? or or they strings?  what type is the array?

RayR

0 Kudos
Message 6 of 9
(3,399 Views)
Thanks Joe
0 Kudos
Message 7 of 9
(3,398 Views)
All valueas are numeric
0 Kudos
Message 8 of 9
(3,395 Views)

Then it should be easy to implement what I showed in the example with your code.

You may want to use or not use the Event Structure.  I used it to handle the selections. 

RayR

0 Kudos
Message 9 of 9
(3,386 Views)