reading .OSC format file given from oscilloscope

I want to read .OSC format file in Matlab/Python. Is there any code for converting the OSC format?
or Is there a program that can convert 5000 .OSC files to another format?

3 Comments

Well, who's o'scope we talking about here? The vendor should have the format for the files and generally supply code to read their product's data.
I never came across the particular extension, but there are a lot of newer miniature 'scopes out there now that weren't in my days w/ Tektronix, HP (long before Agilent), etc., ...
I emailed the vendor and he gave me a cpp code that just read the first 10 data of file. In OSC format data save binary and hex.
this is the link that cpp code is in there:
Who is the vendor and isn't there a physical description of the file format published?
Somebody fluent in cpp could undoubtedly decipher the data struct there, but I am not that person.
It's somewhat of a pain when folks use C struct as there is no direct match of a MATLAB high-level data constract that matches -- one either has to read pieces at a time directly from the file and decode them or use a mex interface that calls the C/C++ code with the struct

Sign in to comment.

Answers (0)

Asked:

on 10 Jul 2022

Commented:

dpb
on 10 Jul 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!