Batch convert psdata to mat command line problem

Post your MATLAB discussions here
Post Reply
shanus
Newbie
Posts: 0
Joined: Wed Oct 10, 2007 2:21 pm

Batch convert psdata to mat command line problem

Post by shanus »

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.

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Batch convert psdata to mat command line problem

Post by Martyn »

Which version of Picoscope 6 are you using ?

Can you try

Picoscope /c *.psdata /f mat /b 1:10
Martyn
Technical Support Manager

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

Re: Batch convert psdata to mat command line problem

Post by shanus »

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

Post by shanus »

2.4Mb in total, not each

Using a Picoscope 3224 for data capture

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Batch convert psdata to mat command line problem

Post by Martyn »

If you send them to support@picotech.com then one of the team can take a look for you.
Martyn
Technical Support Manager

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

Re: Batch convert psdata to mat command line problem

Post by shanus »

Thanks

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

:)

Post Reply