Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

DataAsString property

I'm trying to use the CWGPIB control to return an array of bytes from a Tektronix 460A scope when issuing the ":CURVE?" command. The scope's ":DATAWIDTH" is set to 1, the record length is set to 500, and the DATA:ENCODING is "SRI" (binary not ASCII). Before calling the CURVE? command, I set the .DataAsString property to FALSE, but when I examine the array, every byte has an added null byte, so the array is twice the expected size. Can the DataAsString property be set FALSE and TRUE "on the fly", or do I have to reset the control? I have spoken to a Tektronix support engineer to verify the CURVE? command should not intersperse null bytes between the valid data points, so this leads me to believe I'm configuring the CWGPIB control incorrectly. Any advice would be appreciated.
0 Kudos
Message 1 of 2
(5,701 Views)
I found the problem. After setting the .DataAsString property, you must call the .Configure method for the change to take affect.
0 Kudos
Message 2 of 2
(5,683 Views)