Picoscope .mat file import into matlab

Forum for discussing PicoScope version 6 (non-automotive version)
Post Reply
xyliu
Newbie
Posts: 0
Joined: Mon Mar 22, 2010 4:45 pm

Picoscope .mat file import into matlab

Post by xyliu »

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] = ...

Hitesh

Re: Picoscope .mat file import into matlab

Post by Hitesh »

Hi xyliu,

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

Regards,

xyliu
Newbie
Posts: 0
Joined: Mon Mar 22, 2010 4:45 pm

Re: Picoscope .mat file import into matlab

Post by xyliu »

It is the latest beta 6.7

Hitesh

Re: Picoscope .mat file import into matlab

Post by Hitesh »

Hi,

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

Regards,

xyliu
Newbie
Posts: 0
Joined: Mon Mar 22, 2010 4:45 pm

Re: Picoscope .mat file import into matlab

Post by xyliu »

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 597 times

Hitesh

Re: Picoscope .mat file import into matlab

Post by Hitesh »

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,

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

Re: Picoscope .mat file import into matlab

Post by reid »

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

Hitesh

Re: Picoscope .mat file import into matlab

Post by Hitesh »

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,

Post Reply