Read in XMLdig Waveform

6 Ansichten (letzte 30 Tage)
Tom
Tom am 4 Okt. 2022
Kommentiert: Walter Roberson am 5 Okt. 2022
Hey, I want to read in a waveform to MatLab which has the XMLDig-format. The waveform was recorded with a Lecroy Oscilloscope. I am able to read the data into Matlab and encode it (base64 encoding).
fseek(fid, 1387, 'bof'); %beginning of binary data
decimal=fread(fid,4192906,'schar'); %size of data
STR = string(decimal);
txt = (char((decimal)));
decoded = (matlab.net.base64decode(txt));
decodedbin = dec2bin(decoded,8); %convert to bin with 8 digits
This code works for my file, but i dont know how to intepret the data. If someone has had the same problem and was able to solve it and plot the waveform right i would be very thankful for help.
Tom
  3 Kommentare
Tom
Tom am 4 Okt. 2022
@Walter Roberson there are only these two explanations in the documentation file.
Walter Roberson
Walter Roberson am 5 Okt. 2022
The only way I can see what is described working is if there is information in the header before the base64 information that tells you which array is encoded and what the expected sizes are. If there is, I think it might be possible to decode into arrays. However according to the documentation, the data arrays have to be analyzed to produce waveforms; the process of doing that is not clear from the description.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Call Web Services from MATLAB Using HTTP finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by