Posted Tue, 03 Oct 2023 02:00:59 GMT by Moon, Leo
We recently purchased three AFG 31000s, but we are having trouble using them. We are hoping to program our own waveforms in MATLAB and download them into the AFG, but there are no good examples on the web or on the website. The biggest issue is that the TRACE|DATA[:DATA] scpi command takes an <binary_block_data> as an argument, but the manual does not have a clear definition of what <binary_block_data> is. Any help would be greatly appreciated! Having concrete examples (downloading arbitrary waveforms in advanced mode) in MATLAB will be helpful!
Posted Thu, 05 Oct 2023 16:46:44 GMT by Teles, Afonso
Hi Leo,

A binary block is a standard data type specified in section 8.7.9 of IEEE 488.2 (called a "definite length arbitrary block response data" there).

Here's a quick summary of how they work:

#nddddxxxxxxxxxxxxxx.............

Where # signifies the start of an arbitrary block, n is the number of digits in the length (in ASCII), d are the digits of the length (also in ASCII), xxxxx is your binary data (the format of which depends on your configuration).

Here's an example:
#215THIS IS A BLOCK

For more information please refer to the standard and the following examples: https://forum.tek.com/viewtopic.php?f=580&t=133570

You must be signed in to post in this forum.