> I want to read two .wav files in LabVIEW and process each of them.
> In fact one acts as a signal and the other noise in an algorithm.
>
> I can read an individual file but when I read two - one after the other
> (using
> the 'film strip' sequence thing) the first array seems to go to zero! Is
>
> this the right method? I have two separate sequences one to the left of
> the other. Do I need two events in one sequence or a local event?
>
To read two files, you will either need two uses of the node that reads
the file, or you will need to use a loop. Probably the easiest way to
start is to select the code that reads the first file, copy and paste it
to have another block of code that reads the second file. This assumes
that there is very little code. If
the code to read the file is complicated,
then you can make a subVI from it and instead, so that what gets copied
are the calls to the subVI. Anyway, this will result in two arrays and
I believe you are off to the races.
If you want to do this with a loop, such as when you have 20 files to read,
or an undetermined number of files, this is probably best written by placing
the copied code in a loop. Then modify it so that the values that change,
such as the path/name of the file are input as an array of values. Each
iteration of the loop will index a path and any other relevant inputs, read
the file, then go to the next. You will also want to collect the info such
as the file data and the Error Status. You will want to do most of these
by autoindexing or building a cluster that you autoindex into an array
of ...
Some outputs such as error status are probably better handled by using a
shift register to feed the result to the next iteration.
Greg McKaskle