Test and Measurement Forum

MAT file export - time units

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

MAT file export - time units

Postby gbgb » Sun Feb 26, 2012 1:04 pm

When exporting to MAT files there are the variables - Tsart and Tinterval.
What units are they in?
gbgb
Newbie
 
Posts: 0
Joined: Thu Jan 19, 2012 11:29 am

Re: MAT file export - time units

Postby gbgb » Mon Feb 27, 2012 8:45 am

OK - I think I figured it out
Tstart and Tinterval - they seem to be in seconds. I used a hex editor to find the values and used a binary to double converter. Please confirm that my assumption is correct.
The Length parameter seems to be the number of samples - please confirm.

still have problem with the voltages which I posted separately.
gbgb
Newbie
 
Posts: 0
Joined: Thu Jan 19, 2012 11:29 am

Re: MAT file export - time units

Postby Hitesh » Mon Feb 27, 2012 4:16 pm

Hi,

I have quoted your other post below to keep things together:

gbgb wrote:Exploring the MAT file created by saving a waveform, I can not make sense in what units the data is saved - I expected it to be Volts but this does not seem to be the case. please advise.


Having loaded a couple of test files, the range is set in Volts - if you have seen something different please send in your .mat files.

Tstart and Tinterval are defined in seconds.

One way to confirm this is to multiply Tinterval x (number of samples in a single waveform - 1) and this should give you the total time in a single waveform capture. E.g. with a 1 kHz sinewave and 500us/div timebase in PicoScope 6:

3.2e -7 x (15630 - 1) = 0.005 ms

I hope this helps.
Hitesh

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

Re: MAT file export - time units

Postby gbgb » Tue Feb 28, 2012 6:38 am

Thanks you,

Will check again the voltage issue, since my impression was that the values read from the MAT file did not correspond with those displayed when I looked in PicoScope at the psdata file.
gbgb
Newbie
 
Posts: 0
Joined: Thu Jan 19, 2012 11:29 am


Return to PicoScope 6 for Windows

Who is online

Users browsing this forum: No registered users and 0 guests