Test and Measurement Forum

Picoscope .mat file import into matlab

Forum for discussing PicoScope version 6 (non-automotive version)

Picoscope .mat file import into matlab

Postby xyliu » Wed Jun 06, 2012 6:14 pm

I converted a picoscope data file into .mat. When I tried to open it through file option, I get this error mesage:
Error using ==> load
Can't read file
c:\Users\...........test1.mat
It did input ch A, B & C but no D.

If I tried to import it into matlab through workspace, I got the following errors without any data imported. Any insight?

Thank you!
--------------------------------------------------------------------------------------------------------------------------------------
??? Error using ==> load
Unknown text on line number 1 of ASCII file C:\Users\xliu1\Documents\Test\B515-2012VP-Escosport-1.0LFox GTDI@-30C\test1.mat
"".

Error in ==> importdata at 195
out = load('-ascii',FileName);

Error in ==> uiimport>runImportdata at 432
[datastruct, OTextDelimiter, OHeaderLines] = ...

Error in ==> uiimport>gatherFilePreviewData at 375
[datastruct, textDelimiter, headerLines]= runImportdata(fileAbsolutePath, type);

Error in ==> uiimport at 205
[ctorPreviewText, ctorHeaderLines, ctorDelim] = ...
xyliu
Newbie
 
Posts: 0
Joined: Mon Mar 22, 2010 4:45 pm

Re: Picoscope .mat file import into matlab

Postby Hitesh » Thu Jun 07, 2012 8:04 am

Hi xyliu,

Which version of PicoScope 6 are you using to generate the .mat files?

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2009
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Picoscope .mat file import into matlab

Postby xyliu » Thu Jun 07, 2012 8:10 pm

It is the latest beta 6.7
xyliu
Newbie
 
Posts: 0
Joined: Mon Mar 22, 2010 4:45 pm

Re: Picoscope .mat file import into matlab

Postby Hitesh » Fri Jun 08, 2012 2:09 pm

Hi,

Please try downloading and installing PicoScope 6.6.28 (RC), then generating the .mat file.

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2009
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Picoscope .mat file import into matlab

Postby xyliu » Fri Jun 08, 2012 6:33 pm

I installed 6.6.28 and converted it into .mat file. I still have the same errors when .mat file is opened in Matlab.

.pdata file attached in case you need to check. Could not attach a matlab file here.
Attachments
20120329-0131.psdata
(137.51 KiB) Downloaded 164 times
xyliu
Newbie
 
Posts: 0
Joined: Mon Mar 22, 2010 4:45 pm

Re: Picoscope .mat file import into matlab

Postby Hitesh » Tue Jun 12, 2012 9:07 am

Hi xyliu,

There is a bug with the save to .mat file feature which will be fixed.

In the meantime, I would suggest saving the file to a .csv format as long as it is less than 1M samples - you can load this data file into MATLAB.

Hope this helps,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2009
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Picoscope .mat file import into matlab

Postby reid » Thu Nov 15, 2012 5:57 pm

Hi there. I would also like to export my data to a .mat file for additional analysis. Has this issue been fixed? My data is too large to export to a text file, unfortunately. It also uses all four channels.

Thanks,
Reid
reid
Newbie
 
Posts: 0
Joined: Tue Aug 07, 2012 4:04 am

Re: Picoscope .mat file import into matlab

Postby Hitesh » Mon Nov 19, 2012 10:44 am

Hi Reid,

Please try PicoScope 6.6.50 (RC).

If this does not resolve the issue please e-mail support@picotech.com with a link to your .psdata file.

Thanks,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2009
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire


Return to PicoScope 6 for Windows

Who is online

Users browsing this forum: No registered users and 0 guests