HI all,
I would like to solicit some helpful hints from you.
I am trying to transfer trace data from an Anritsu MS2721B spectrum master using the TRACE command. I have configured the instrument to run in a continuous sweep mode.
Using the Visa Interactive Control I am sending the following viWrite command to the instrument ":TRACe?\n"
viRead returns some alphanumeric characters which unfortunately I have been unable to decipher. The returned information looks something like this:
#42204\xe0\xcd\xfe\xff\xac\xcc\xfe\xff\x18\xc9\xfe\xff\xe8\xc4\xfe\xff\x8c\xc8\xfe\xffD\xd1\xfe\xffd\xd5\xfe\xffL\xc9\xfe\xff\x94\xc4\xfe\xff\x9c\xca\xfe\xff\xd8\xc5\xfe\ ...
From the user's guide I am able to understand that the first #4 means that a 4-digit length info will follow. The 4-digit length info is the next 4 byte characters -- "2204", means that the actual data block 2204 bytes will follow.
I would just like to know how to decipher the data block? I have tried the command several times but I keep getting the same ASCII header with the same the number of data bytes i.e. 2204 but different alphanumeric characters in the subsequent data block.
I have tried by sending different format commands to the instrument before sending the TRACe query command like :FORMat:DATA INTeger,32 or :FORMat:DATA REAL,32 with no success.
When I run the ":TRACe:PREamble?\n" the trace header information is returned without problems.
I will be grateful if I can get any helpful hints.