AnsweredAssumed Answered

HP3458 Digitizing - Return Data in SINT Format

Question asked by spacecowboy on Jul 15, 2011
Latest reply on Aug 29, 2011 by spacecowboy

Using the HP3458A In digitizing mode, we are trying to use the SINT data format, to allow
faster sampling rates for us.
We understand the SINT data comes back in binary format.  We are having issue's
decoding the binary data into an integer or double number.

Quoting from User manuel:
'SINT Example The following program outputs 10 readings in SINT format, retrieves the
'scale factor and multiplies the scale factor times each reading. The readings
'are transfcrred to the controller using the TRANSFER statement (this
'100 Chapter 4 Making Measurements
'command is specific to Hewlett-Packard 200/300 controllers using BASlC
'language). The TRANSFER statement is the fastest way to transfer readings
'across the GPIB, especially when used with the direct memory access (DMA)
'GPIB interface. You should use the TRANSFER statement whenever
'measurement/transfer speed is important.

We are using the GPIB bus to transfer the data to the host pc.
Subset of our code:
Call ibwrt(dev, "PRESET DIG")
Call ibwrt(dev, "OFORMAT SINT")
Call ibwrt(dev, "APER, 0")
Call ibwrt(dev, "SWEEP 15.259e-6, " & numofdata)
Call ibwrt(dev, "MEM FIFO")
Call ibwrt(dev, "TRIG LEVEL")
Call ibwrt(dev, "SLOPE NEG")
Call ibwrt(dev, "Level 10, DC")
Call ibwrt(dev, "TARM SGL")
Call ibwrt(dev, "RMEM 0,1")
Call ibrd(dev, RRdata)

RRdata contains the data returned form the HP.
We'd like to know how to decode this.  The manuel says it's a 2 byte's per sample.
When we change to an ASCII format, things are working fine.  But we need the SINT
for faster rates.

Any help?