07-03-2018 11:24 AM
Hello,
So I have a text file of 16bit binary data, with 8 different rows and columns, so 64 total data points. I am trying to read all this data into a 2D array. My current VI is only reading the first column, and I can't seem to make it read each of the 8 columns. Can someone help me on this?
My current VI:
Solved! Go to Solution.
07-03-2018 11:46 AM - edited 07-03-2018 11:48 AM
Please attach the text file and your VI. Is the delimiter really a comma?
Is the data formatted in binary or is it a binary file? Big difference!
(We cannot see how things are connected from the picture. You don't need to wire the -1, because it's the default)
07-03-2018 11:51 AM
The delimiter is really a comma. It is a text file that I wrote that corresponding to the bytes necessary to call specific DACs.
07-03-2018 11:53 AM
Look on the File I/O Palette for Read Delimited Spreadsheet. Note that the default delimiter is <tab>, but you can wire a comma (",") to this input and it should do "what you want". Read its Help file ...
Bob Schor
07-03-2018 11:58 AM - edited 07-03-2018 11:59 AM
Your wired delimiter is currently (in \-codes) "\t,", i.e. it contains an extra tab. make sure it only contains a comma!
07-03-2018 12:04 PM
You're a life saver, altenbach. Thanks!