07-11-2011 03:04 PM
Hey everyone,
I currently have a .MAT image file which I would like to open in LABVIEW to apply some image filters. However, I am unsure as to how to open the .MAT file in LABVIEW. Ideally I would like to be able to open the .MAT file without using matlab, and it seems the only way to accomplish this task is through the mathscript node. I have attached an example of the image im trying to open, as well as the LABVIEW program which I would like to use on the image. Thanks for the feedback! =]
07-12-2011 09:52 AM
Hi Boiler,
1) Do you have a choice in the format you export your data from MATLAB?
"ASCII Format
Complete the following steps if you want to import or export data between LabVIEW and the MATLAB® environment, the process is straightforward as long as you are using ASCII format.
From the MATLAB® environment to LabVIEW
>>SAVE filename X -ascii -double -tabsThis creates a file whose name is filename, and it contains the data X in ASCII format with a tab delimiter.
"
2) Have you tried using the mathscript node? Did you get any errors?
"Binary Format
Complete the following steps if you want to import or export data between LabVIEW and MATLAB®.
From the MATLAB® environment to LabVIEW
.mat
file in LabVIEW would require a VI to parse the file. This may be easier if each variable is saved to a separate file." -- this was done here, no ideas if it still works,
Hope this helps, James
07-12-2011 10:09 AM
09-06-2012 05:28 AM - edited 09-06-2012 05:31 AM
Hi,
yes, that is true, and the project is still alive (the installation may take some time, it is compiled with LabVIEW 8.2.1.
If you do not have LV 11 and newer you have to install the RT engine 11 or newer.
I recommend to install the package with the third party "VI Package Manager"
The "VI Package Manager" takes care about some dependencies with other packages, but it is not solving
all dependencies (you may read the read me file 😉 )
At the moment I have the problem to write continually to a 2D double array, but I'm still struggling with this,
has anyone tried this?
Stefan
10-13-2012 11:39 AM
My problem is that i have faulty bearing signals data file in .mat format, which i want to process in Lab Veiw 2009...I wanted to use Matlab script for the purpose... i am weak in using Matlab, Can any body help me in coding for reading the file and then displaying signals of bearing vibration in chart...
Regards
10-13-2012
11:58 AM
- last edited on
02-28-2025
01:47 PM
by
Content Cleaner
Do you want to analyze in LabVIEW? TherIsis a datafinder plug-in that will work with e datafinder toolkit.
How big is the .mat file? Can you work with TDMS files version 2.0
10-15-2012
09:04 AM
- last edited on
02-28-2025
01:47 PM
by
Content Cleaner
The MATLAB DataPlugin will allow you to
- read/write MATLAB files with LabVIEW using the Storage VIs
- index MATLAB files and search for them using the NI LabVIEW DataFinder Toolkit
01-19-2015 02:40 AM
I've the same problem. If someone found out how to do, pls do reply. I've tried the MATLAB® DataPlugin but its not getting installed. Is it possible to use the mathscript node and load a variable from the file?
01-19-2015
08:41 AM
- last edited on
02-28-2025
01:48 PM
by
Content Cleaner
Which LabVIEW version are you using?
Did you install your MATLAB dataPlugin from MATLAB® DataPlugin?
Do you have Administrator privileges?
01-19-2015 09:52 AM