Hi,
i have use PicoScope6404B to make measurements with a sampling rate of 312,5MS/s during 0,5s. so that i get about 156MSamples. When i load the converted data in .mat file, i get the Warning: "Unable to read some of the variables due to unknown MAT-file error.". I have try the release 6.6.50 and the latest 6.6.57.
in .csv i get just the first 1MSamples o f my data.
We are aware of an issue relating to saving large files to a .mat format.
If you have any items such as filtering turned on, please turn them off and try saving the file again. You can also try the latest version of the PicoScope Beta software from
also with the latest version i get an error message when loading the converted file in MATLAB.
Please help !
the PicoScope software allows spectrum bins up to 1048576, so that only 2MSamples of my data (about 156MSamples) will be used and the rest will be ignored. Therefore i want to calculate the FFT in Matlab. Furthermore in the spectrum view the frequency axis is unfortunately not logarithmic.
I've picked up the file and the bug does not appear to have been fixed yet.
I will pass on a request for one of our Development Engineers to take a look.
Are you looking to post-process this data in MATLAB? It is possible to write MATLAB scripts that use the dlls in the Software Development Kit in order to capture data. Guidance is provided in the following area on the forum:
perhaps it is a tip, how your Development Engineers can fix the conversion error of a measured data to .mat file !!!!
i have another question:
as i duplicate my data (156MSamples) to a reference waveform, the .psreference file was just 3MB big and the .mat file contains only 4,2MSamples. The frequency spectrums of the original and the duplicated data in Picoscope are also different (i see peaks in the duplicated data every 370kHz) --> i think the duplicate data are undersampled, isn't it ??
-->
Hello Hitesh,
i have try the export function of a reference waveform in Matlab and it works. Matlab can read the data without any error --> perhaps it is a tip, how your Development Engineers can fix the conversion error of a measured data to .mat file !!!!
i have another question:
as i duplicate my data (156MSamples) to a reference waveform, the .psreference file was just 3MB big and the .mat file contains only 4,2MSamples. The frequency spectrums of the original and the duplicated data in Picoscope are also different (i see peaks in the duplicated data every 370kHz) --> i think the duplicate data are undersampled, isn't it ??
Calling the 'memory' function in MATLAB will display the maximum possible size for an array as well as for all arrays. E.g.:
>> memory
Maximum possible array: 879 MB (9.219e+08 bytes) *
Memory available for all arrays: 1319 MB (1.383e+09 bytes) **
Memory used by MATLAB: 348 MB (3.654e+08 bytes)
Physical Memory (RAM): 3017 MB (3.164e+09 bytes)
* Limited by contiguous virtual address space available.
** Limited by virtual address space available.
This is determined by the PCs resources.
The data is saved as 32-bit float values. What this means is that if the size of an array in the file exceeds the maximum possible size, it will not be loaded. If the total size of the arrays exceeds the memory available for all arrays then it may be possible to load some of the arrays but not all.
A 64-bit version of MATLAB may allow a larger maximum possible array.
Error using load
Number of columns on line 3 of ASCII file D:\100MSamples.mat must be the same as previous lines.
That means, the file doesn't contain a rectangular table of numbers, with an equal number of elements in each row !
I think, this is an error in PicoScope, when converting the data in a .mat file
Bassem
-->
Hi Hitesh,
i have tried with the latest 64bit version of Matlab
>> memory
Maximum possible array: 5310 MB
Memory available for all arrays: 5310 MB
Memory used by MATLAB: 666 MB
Physical Memory (RAM): 3551 MB
i could load the generated .mat file in Matlab without any problem, but only if the number of samples is less than 100MSamples. If it is higher than 100MSamples and although enough free memory is available (100MSamples --> 800MB are needed), i get this error message
Error using load
Number of columns on line 3 of ASCII file D:\100MSamples.mat must be the same as previous lines.
That means, the file doesn't contain a rectangular table of numbers, with an equal number of elements in each row !
I think, this is an error in PicoScope, when converting the data in a .mat file
unfortunately i get the same error.
100MSamples seems to be a magic limit !!! i assume, it is small error, like an additional number or a carriage return or a tabulator, that disturb the regularity of the ASCII file.