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,353 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,340 Views)