05-10-2017 11:57 PM
Hi,
I'm trying to read a csv file with 2 columns into 2 separate arrays for interpolation. But I am unable to convert the read data into arrays.
Attached is the VI for reading and displaying data.
Thanks
Solved! Go to Solution.
05-11-2017 12:13 AM - edited 05-11-2017 12:16 AM
You probably should also attach one of your csv files.
(In general, to get a row or column, "index array" is the right function, just keep one index dimension disconnected.)
05-11-2017 12:39 AM
Here is an example csv
05-11-2017 12:49 AM
Thanks. I first used transpose and then index to get x and y.
05-11-2017 12:55 AM
05-11-2017 12:58 AM - edited 05-11-2017 01:01 AM
If you wire to the lower dimension, you don't need to transpose.
(You can also select "transpose" when you read the file (boolean input). Then simply omit wiring any indices to get the first two columns.)
05-11-2017 01:02 AM
Worked perfectly. Thanks for the help 😄