AnsweredAssumed Answered

MSO6104A size of data read

Question asked by NurS on Dec 17, 2007
Latest reply on Jan 13, 2011 by lysander
I am trying to read 1 million samples from a MSO6104A scope. The scope is set to single mode and when the data is captured it displays the length as 1000000 on the screen. When I execute the VB6 code below ydata is read as a 1000 byte array.

Thanks in advance for any help.

   Dim Preamble()
   Dim ydata As Variant

  With scope
      .WriteString ":WAVeform:POINts 1000000"
      .WriteString "Waveform:Source channel1'
      .WriteString ":SINGle"
      .WriteString "Waveform:Preamble?"
      Preamble() = scope.ReadList
      .WriteString "Waveform:Format byte"
      .WriteString "Waveform:data?"
   End With
      ' this gets the IEEE block data and puts it into array
      ydata = scope.ReadIEEEBlock(BinaryType_UI1)  

Outcomes