LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save new mat file: MATLAB

Hello,
I am not able to save a new MATLAB file (ie. create a file) from LabVIEW . This is possible in MATLAB by using the command: save(filename, 'variable'). When I do this in LabVIEW for a new file, I get a message saying that the file does not exist. This does not happen in MATLAB. How do I get around this? In my program I need to create many mat files with data collected while LABVEIW is running.

I would appreciate any incite in this matter,
Thanks,
Ivanka
0 Kudos
Message 1 of 7
(7,193 Views)
Hi Ivanka,

If you would like to post a sample VI, I would be happy to look further into this issue!

Thanks,
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 2 of 7
(7,179 Views)
Here is a sub vi. Please let me know if you need more clarification. Thanks,Ivanka
0 Kudos
Message 3 of 7
(7,174 Views)
Hi Ivanka,

If you are wanting to use this data in Matlab, you might want to follow the KB linked below:

Can I Import Data from MATLAB to LabVIEW or Vice Versa?
http://digital.ni.com/public.nsf/websearch/2f8ed0f588e06be1862565a90066e9ba?OpenDocument

Hope this helps,
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 4 of 7
(7,167 Views)
Thank you,
I actually figured out my problem.
have a great day!
Ivanka
0 Kudos
Message 5 of 7
(7,160 Views)
would you mind to post your solution?

-Joe
0 Kudos
Message 6 of 7
(7,158 Views)
Sure,
Actually, I found that my problem was that I was executing the line

load (file, 'results')

when the file didn't exist! I realised that you cannot load non-existing files, but you can save to new files. So I just deleted that line and everything worked!
0 Kudos
Message 7 of 7
(7,154 Views)