02-08-2006 05:38 PM
02-09-2006 11:33 AM
Hi Mike,
Since the MATLAB(R) binary format is different from that of LabVIEW, I don't think that there is any way to import the binary MATLAB files into LabVIEW. However, LabVIEW can read MATLAB files saved in ASCII format with a tab delimiter. You could use the Read Spreadsheet VI to return these MATLAB files in arrays. For more information, check out this Knowledgeable: Can I Import Data from the MATLAB development environment to LabVIEW or Vice Versa?
Best Regards,
Megan B.
National Instruments
02-09-2006 12:45 PM
02-09-2006 02:42 PM
Thank you for your efforts. I should have mentioned that the file appears to be saved in Matlab 4 format. I think what you wrote is expecting a matlab 5 format.
If you still have some time, maybe you can modify your program to read matlab 4 files.
I tried attaching a sample file several times now, and my reply does not seem to make it onto the thread. Maybe my sample file is too large. So I am submitting this response without the sample. I will try to generate a smaller file and submit it as well.
Mike
02-09-2006 02:53 PM
02-09-2006 05:06 PM - edited 02-09-2006 05:06 PM
Message Edited by smercurio_fc on 02-09-2006 05:07 PM
02-15-2006 05:32 PM
03-26-2012 09:00 AM
Hi smercurio_fc,i am trying to do a similar thing you have helped mike with here.Sorry for reposting here i can see this post was in 2006.I have a one tank system in simulink and i have been able to save the output as an array in a Mat-file.Now i want to read and display this output in labview as i am using labview as the user interface of the simulink tank system.Do you think the vi you did for mike can work for me or are you still bored :).Please find attached the labview vi i will like to incorporate with the vi you have done here.Thanks
03-26-2012 03:16 PM
There is a DataPlugin for LabVIEW that allows you to read and write .mat files.
Check out more about using DataPlugins in LabVIEW here: http://zone.ni.com/devzone/cda/tut/p/id/11951