03-27-2019 12:07 PM
I have a vi that currently takes a binary file, and converts it to a CSV. I am trying to modify the program to allow for any amount of binary files to be uploaded and converted into individual CSVs. I was trying to use for loops to do this, but I can't quite figure it out. Attached is the original VI.
Thanks for the Help!
Solved! Go to Solution.
03-27-2019 12:50 PM
Hi MatLac,
Maybe it is easier as you think. Try to build an array of file pathes of your binary files and pass it to that modified VI.
Please note the comments.
MOJO
03-28-2019 08:44 AM
I would slightly alter MOJO's algorithm:
Do you know how to programmatically get a list of all the files of a certain type in a Directory? Let's say you have a folder "C:\My Data" that has all of your ".bin" files inside, and you want an array of the paths to all of these files (to use as the input to the algorithm discussed above). Here's what you do:
Bob Schor
04-02-2019 11:54 AM
I've been trying to make the changes you recommended but I don't think I quite understand how to do what you are saying. Right now I am using the List Folder vi to get the file paths, as well as a count to know how many iterations to run. I understand that the strings outputted don't match the file path format needed to be inputted into MOJO's algorithm but how do I make it so those strings are converted to file paths? Thanks for the help and sorry for the confusion.
04-02-2019 12:17 PM
Never mind that last reply of mine, I figured it out, I have attached the working vi if anyone needs to see it for reference in a similar problem.
04-02-2019 12:46 PM
Depending on how big your file is, you may run into memory problems.
No idea if this is any better, but it takes up less space on your block diagram and may be preferable to your solution now. It also may be slower and use more memory, you would need to test.
mcduff
Use this for your conversion
Original Conversion Loop