Author Topic: How do I read an LSF file?  (Read 2797 times)

0 Members and 1 Guest are viewing this topic.

Offline BanksySanTopic starter

  • Newbie
  • Posts: 3
  • Country: gb
How do I read an LSF file?
« on: March 24, 2018, 07:17:48 pm »
I've got an LSF file generated from a GW Instek oscilloscope (attached).

How do I read this file?  Are there existing applications that read it, or a spec for me to write something to read it?

Thanks
« Last Edit: March 24, 2018, 07:19:46 pm by BanksySan »
 

Offline 0xfede

  • Regular Contributor
  • *
  • Posts: 201
  • Country: it
Re: How do I read an LSF file?
« Reply #1 on: March 24, 2018, 08:43:45 pm »
Hi BanksySan,

there is a nice module in MATLAB for those files called lsfreader(datafile).
Here you can find more info:
https://it.mathworks.com/matlabcentral/fileexchange/54090-lsfreader-datafile-?focused=6559621&tab=function

Best,
0xfede
Semel in anno licet insanire.
 

Offline BanksySanTopic starter

  • Newbie
  • Posts: 3
  • Country: gb
Re: How do I read an LSF file?
« Reply #2 on: March 24, 2018, 09:42:52 pm »
Cheers.

I don't speak MatLab unfortunately, but I'm sure with a bit of Google I can unpick the syntax.  If nothing else, it did confirm that this is a propriety format from GW.  Looks like an undocumented one at that.  Sigh

Dave
 

Offline BanksySanTopic starter

  • Newbie
  • Posts: 3
  • Country: gb
Re: How do I read an LSF file?
« Reply #3 on: March 24, 2018, 09:50:01 pm »
The comment at the top of the script has a link to a repo with tools for working with GW DSOs.

https://github.com/OpenWave-GW/OpenWave-200/

Looks potentially like the right thing (even if not, I can figure out what Python is doing faster than learning MAtLab).
 

Offline rhb

  • Super Contributor
  • ***
  • Posts: 3501
  • Country: us
Re: How do I read an LSF file?
« Reply #4 on: March 25, 2018, 04:38:02 pm »
Export in LSF and in "Detail CSV" format with 1Kpt taken using the scope calibrator.   Convert the LSF to hex, decimal and character format with the Unix utility, od(1). Write a C program to read the things you can identify and go from there.  The MATLAB code will give some clues, but IIRC it was a it obtuse.

I have a couple of GDS-2000E series scopes.  Writing a file convertor was on my to do list, but I've decided to just work on writing FOSS FW for them.  I just need a few days without interruption to get started learning  Zynq FPGA programming.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf