AnsweredAssumed Answered

ReadIEEEBlock not working

Question asked by jkostans on Feb 12, 2016
Latest reply on Feb 26, 2016 by jkostans
I'm trying to read a trace off a DSA-X 93304Q, and it's working fine using "WAV:FORM ASCII" and Instrument.ReadString

I want to speed up the transfer process, so I attempted to use "WAV:FORM WORD", but my Instrument.ReadIEEEBlock doesn't seem to be returning anything.

VB.NET Code:
######
Dim Instrument as new Ivi.Visa.Interop.FormattedIO488
Dim VISAMgr as new Ivi.Visa.Interop.ResourceManager
Instrument.IO = VISAMgr.Open("USB0::etc.etc")

Instrument.WriteString ":SYST:HEAD OFF" 
Instrument.WriteString ":WAV:STR ON" 
Instrument.WriteString ":WAV:SOUR CHAN1"
Instrument.WriteString ":WAV:FORM WORD" 
Instrument.WriteString ":WAV:DATA?"
Dim Data as Object = Instrument.ReadIEEEBlock(Ivi.Visa.Interop.IEEEBinaryType.BinaryType_I2)
######

This returns nothing into the Data variable, and in IO Trace I see the following during the ReadIEEEBlock command:
viSetAttribute TerminationCharacterEnabled, VI_FALSE
viRead "#"
viRead "0"
viSetAttribute TerminationCharacterEnabled, VI_FALSE

There aren't an errors reported on the scope, or while the code is running. Any ideas?  

Outcomes