From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
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 😄