LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read trace data from HP8712ET into array of numbers.

Hi. I am programming to read the trace data from the HP8712ET. 'ibread' puts the data into a char array, but what I really need is to put the info into a numerical array. What's the best way to do this? Your help is appreciated.
0 Kudos
Message 1 of 2
(3,122 Views)
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.
0 Kudos
Message 2 of 2
(3,122 Views)