The first issue is IBRD. This reads data into a declared array. This array can be of any type, so declaring the array as a double will force the binary data into the array of doubles. Declaring as an int will substitute here as well. As for forcing the converted char string you should get from the HP device into strictly an unconverted binary string, that may be instrument specific. You would want to refer to your manual for that device, as that should show you, and I'm guessing it will use something along the lines of an IBWRT. Hopefully your instrument will be SCPI compliant, but make sure to double check with the manual.