RAW BIN & ASCII data format in SCPI and Acquire command

Applications, development tools, FPGA, C, WEB
Post Reply
AB
Posts: 13
Joined: Thu Jan 07, 2016 6:24 pm

RAW BIN & ASCII data format in SCPI and Acquire command

Post by AB » Tue Feb 23, 2016 8:13 pm

Hallo Nils
what is the difference betwen RAW BIN & ASCII data format in SCPI and the output that I have using acquire from command line?
Which one of this must be used to calibrate the RP?
Moreover If I need to read out data in Matlab with RAW BIN format How can I convert the output that is binary in
a decimal number?
Thanks

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: RAW BIN & ASCII data format in SCPI and Acquire command

Post by Nils Roos » Fri Feb 26, 2016 10:54 pm

The acquire command gives you raw sample data (with averaging applied if you so configured it).
On the other hand, scpi BIN format has the calibrated DC offset already apllied to the samples.
So for calibration purposes you'd prefer acquire.
Moreover If I need to read out data in Matlab with RAW BIN format How can I convert the output that is binary in
a decimal number?
The binary data is 16bit little endian. I am wholly unfamiliar with Matlab, so I have no idea what mechanisms it offers to receive and import data of that format. "signed short" - or just "short" - is a commonly used name for the data type, if you feel like finding out by yourself.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 84 guests