LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read multiple files and generate multiple files

Dear all, I would like to process some LTE measurement files. Currently I can only load a single file and process the data and save it to a single binary file. Since I would like to run the code continously, could someone show me how I can modify the code to load multiple files and specify multiple files to save the process the data please? I have attached the code to the question. Many thanks for your help.

0 Kudos
Message 1 of 6
(4,081 Views)

By the way, my input files are in .bin format. Many thanks

0 Kudos
Message 2 of 6
(4,080 Views)

To be simple you can have array of path and take the path by Indexing/deleting the array element one by one. so while saving the data you can have time stamp along with the name so that for each iteration you can have different files.

 

I wonder why you have given an empty path.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 3 of 6
(4,074 Views)

There is no official "bin" format and I am confused by some of your statements:


@Kiwibunny wrote:

Currently I can only load a single file and process the data and save it to a single binary file. Since I would like to run the code continously, could someone show me how I can modify the code to load multiple files and specify multiple files to save the process the data please? I have attached the code to the question. Many thanks for your help.


What you could do is use "list folder" with *.bin as pattern, and use a FOR loop and iterate over all *.bin files found in a selected folder.

 

In any case, your code uses some weird constructs and you seem to do way to much. Are you using "continuous run" mode? Don't!

Use a proper state machine instead ot these stalling loops. Why do you need to query the queue after each enqueue? Why do you need a queue at all?

 

 

Message 4 of 6
(4,067 Views)

Hi , many thanks for your reply. I am a beginner to labview, I was given the code acutally. Could you please show me how I can use the 'list folder' function to perform the task please? I tried to add it to my block diagram and i don't think it is working correctly.   

0 Kudos
Message 5 of 6
(4,061 Views)

Here's a simple code skeleton that should point you in the right direction.

 

 

0 Kudos
Message 6 of 6
(4,037 Views)