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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading matlab matrix to array

Hello,

 

I am using a Labview programme to control a UAV. I didn't write the code and have no experience of Labview (so pardon my ignorance :)). I have a set of waypoints in a .mat file that I would like to be an array input. At the moment, the array is a control from the front panel to type in the waypoints but I have too many to type in each time.

 

I thought that using a .csv file would work and tthen read from spreadsheet but I can't get it to work.

 

Any suggestions appreciated. 

 

Thanks 

0 Kudos
Message 1 of 2
(2,349 Views)

Hi buzz,

 

- a *.mat file is no *.csv file.

- in your picture there is no ReadFromSpreadsheetFile shown

- you work with an array of cluster elements

 

Use a CSV file with your waypoints. Read that file using ReadFromSpreadsheetFile. Convert the 2D array you receive to your array of cluster…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(2,336 Views)