Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Binary Block VISA transfer issue-LV2009-Agilent 34980A

I hope this hasn't already been answered, but searching for binary block gives a lot of non-applicable results.

 

I'm trying to control an Agilent 34950A in a 34980A using LV2009 via VISA over an ethernet connection.  I'm communicating trace data using binblock mode due to the size of my trace.

 

The code has an array of U32s ranging from 0-255 to be written to the card.  The actual transmitted data is an EXT, composed of four bytes, each of which ranges from 0-255, with the bytes multiplied by 2^0, 2^8, 2^16 and 22^24 to create the final number.  Every single number works except 10 in the 2^0 portion of the word.  I'm baffled as to why, with my only guess being the ASCII 10 being the LF character is messing with the function.

 

I didn't write the conversion, but it seems reasonable.  U32 to string to 4 element byte array which is flattened to a string and then the data string is concatenated onto the "header" and the rest of the command.  Again, every number from 0-255 works except 10.  ?????

 

The command being used is TRAC:DIG:WORD (@3101), #244<binblock data>

 

Feel free to point out my stupidity quickly to end my stress.

 

Thanks.

0 Kudos
Message 1 of 6
(3,697 Views)

Hi JT,

 

It sounds like you're receiving the data fine.  Is the problem happening with the conversion?  Have you tried "highlight execution" or stepping through the conversion to see why the '10' doesn't work on your lowest significant byte?

 

Please see the following article regarding highlight execution

http://decibel.ni.com/content/docs/DOC-7574

 

Also, the following article describes some troubleshooting steps too.  I would use the "suspend execution" in the conversion SubVI, and step through the execution whenever the byte is 10.

http://decibel.ni.com/content/docs/DOC-1695

 

Regards,

Che T.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(3,684 Views)

can you post the init section of your visa?

greetings from the Netherlands
0 Kudos
Message 3 of 6
(3,674 Views)

Hi,

 

Looks like you forgot to disable the "termination Character"

 

Kees

0 Kudos
Message 4 of 6
(3,669 Views)

@K C wrote:

Hi,

 

Looks like you forgot to disable the "termination Character"

 

Kees


If there is a way to do so, I've not found it.

0 Kudos
Message 5 of 6
(3,657 Views)

The 'VISA Configure Serial Port' VI. See the help of this VI.

0 Kudos
Message 6 of 6
(3,655 Views)