Test and Measurement Forum

Batch convert psdata to mat command line problem

Post your MATLAB discussions here

Batch convert psdata to mat command line problem

Postby shanus » Sat Feb 01, 2014 8:51 am

Hi All,

I seem to be having a problem withe all versions of Picoscope to batch convert psdata files into matlab files.

Here is the example:

I have N files 50khz.psdata, 52khz.psdata, 54khz.psdata.... in c:\data

Each psdata file contain 10 buffers (waveforms)

Whilst at the command line and in the directory c:\data I input this command which should convert each psdata file into 10 separate mat files (i,e 50khz_01.mat, 50khz_02.mat...) in individual directories (i.e c:\temp\50khz, c:\temp\52khz,...)

Picoscope /c *.psdata /f mat /b all

What happens is that picoscope starts converting the first file (50khz.psdata). I get the first directory c:\data\50khz created with 50khz_01.mat, 50khz_02.mat...50khz_10.mat but it hangs there and each .mat file does not close so the data is not written to the files and each has a volume of OK.

Any workarounds to this problem? I have a heap of .psdata files to convert and would rather not do it manually.
shanus
Newbie
 
Posts: 0
Joined: Wed Oct 10, 2007 2:21 pm

Re: Batch convert psdata to mat command line problem

Postby Martyn » Mon Feb 03, 2014 7:38 am

Which version of Picoscope 6 are you using ?

Can you try

Picoscope /c *.psdata /f mat /b 1:10
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2344
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Batch convert psdata to mat command line problem

Postby shanus » Mon Feb 03, 2014 8:01 am

I am using Picoscope 6.7.40.3 under Windows 7 64. I have also tried earlier versions of Picoscope 6and the same problem exists.

Your suggested command line does not work either. It still hangs on the first file batch conversion.

The psdata files are about 2.4Mb, can I send them to you so you can have a try?
shanus
Newbie
 
Posts: 0
Joined: Wed Oct 10, 2007 2:21 pm

Re: Batch convert psdata to mat command line problem

Postby shanus » Mon Feb 03, 2014 8:03 am

2.4Mb in total, not each

Using a Picoscope 3224 for data capture
shanus
Newbie
 
Posts: 0
Joined: Wed Oct 10, 2007 2:21 pm

Re: Batch convert psdata to mat command line problem

Postby Martyn » Mon Feb 03, 2014 9:15 am

If you send them to support@picotech.com then one of the team can take a look for you.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2344
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Batch convert psdata to mat command line problem

Postby shanus » Wed Feb 05, 2014 5:57 am

Thanks

Problem solved using Picsocope 6.8.6 RC version and used an Administrator Level command prompt

:)
shanus
Newbie
 
Posts: 0
Joined: Wed Oct 10, 2007 2:21 pm


Return to MATLAB

Who is online

Users browsing this forum: No registered users and 0 guests