LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Copying data from Matlab file

I have a large data set created from a Matlab Simulation that I want to use in a lookup table in my Labview application.  Is there a way to select data (i.e. click and drag) from a table format such as the Matlab Array Editor or MS Excel and paste it into a Labview array?  I could export each matlab variable into a text file, then import the data from the text file with a File I/O VI, but I was hoping somehow I could skip this intermediate.  Since the final application will be run on a real time system, I'd rather have the data saved as array constants anyways than innundate my application with I/O routines
 
Does anyone have any hints or clues?
0 Kudos
Message 1 of 3
(2,900 Views)
Hello,

I don't use Matlab very often but LabVIEW yes, and I've never heard of a "click and drag" possibility for array value into LabVIEW...

I'm sorry I do think you'll have to develop a "read_array.vi", but this is far from being complicated, an easy way of doint is using the "read file.vi" iwith line mode activated.

See attached example, you might have to adapt it a bit to the matlab file format wich I don't really konw Smiley Wink
Let me know if ot helps


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 3
(2,894 Views)
Hi OEdwards,

Congratulations with your first thread!

To inform you, there's currently no way of copy/paste or drag/drop data into multiple elements of an array at once. However, it sounds like a feature that many people would value, so please submit it to the LabVIEW developers as a Product Suggestion using the "feedback" link on www.ni.com/contact, thanks.

Have fun and don't stop posting!
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 3 of 3
(2,885 Views)