04-25-2011 01:52 PM
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.
04-26-2011 05:02 PM
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,
04-28-2011 02:54 PM
04-29-2011 01:43 AM
Hi,
Looks like you forgot to disable the "termination Character"
Kees
05-04-2011 06:28 AM
@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.
05-04-2011 06:36 AM - edited 05-04-2011 06:38 AM
The 'VISA Configure Serial Port' VI. See the help of this VI.