LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

search string array and get the most updated file

hi tst, can you help me with my code.vi
orginally, my code works the way it is...
it search for a file..
test.csv for instant..
it copy all of the contents of the file into an array..
then it searches within the program for matching serial number....

now...i have this..
instead of 1 file like i used to have..
i have multiple files....
i have to search within the files for latest file to use...
once i find that file..
my program runs normally...
it will copy all contents to an array...

but my system does not only test 1 SN..
it have about 44...

the issue i am having is when i put SN local variable in my first sequence...i recieve a -1 (invalid number), therefore my program does not work.
how do i get rid of that?
in another work..i have to work with my sequence cases to allow it to search for SN before i use it in my other local variables.
can you help?
thanks in advance

Best regards,
Krispiekream
0 Kudos
Message 11 of 14
(974 Views)
i made this..i dont know if it is right..
but it is searching for the files according to plan..
but i dont know how to save all files constants into 1 array..


Best regards,
Krispiekream
0 Kudos
Message 12 of 14
(964 Views)
i got all the searches down...
if SN = -1, then the program will not search
i wonder how i can collects all 44 devices through this search and store them in 1 array..?

right now, only when i end my vi that it will find 1 device out of 44 devices..
how can i make it find all devices as my program ends?
i know i have to make some type of loop..



Message Edited by krispiekream on 02-29-2008 04:49 PM
Best regards,
Krispiekream
0 Kudos
Message 13 of 14
(961 Views)


krispiekream wrote:

i know i have to make some type of loop..

You already have a loop which outputs the paths to all the files as a 1D array, which you can use.
 
I didn't understand exactly what you want to do, but I strongly suggest you take some of those tutorials I linked to. They should help.

___________________
Try to take over the world!
0 Kudos
Message 14 of 14
(941 Views)