Hello,

I recently got an N8241A AWG, and I'm trying to create a bin file that I can use with the device. However, I currently have no clue how to create such a file. I found the 'importAgilentBin()' MATLAB function, but I'm looking from something along the lines of an 'exportAgilentBin()'. Right now, I have a large number of waveforms in MATLAB I would like to encode, but I don't know where to start. I've been pouring over the manual and haven't found the answer.

Edit to clarify- I'm looking to create a .bin file, not directly connect MATLAB to the AWG.

Thanks for your help!

Nicholai

Edited by: FrenchyRaoul on Nov 17, 2014 11:26 AM

I recently got an N8241A AWG, and I'm trying to create a bin file that I can use with the device. However, I currently have no clue how to create such a file. I found the 'importAgilentBin()' MATLAB function, but I'm looking from something along the lines of an 'exportAgilentBin()'. Right now, I have a large number of waveforms in MATLAB I would like to encode, but I don't know where to start. I've been pouring over the manual and haven't found the answer.

Edit to clarify- I'm looking to create a .bin file, not directly connect MATLAB to the AWG.

Thanks for your help!

Nicholai

Edited by: FrenchyRaoul on Nov 17, 2014 11:26 AM

Regarding the binary files, the samples are stored as 16-bit integers in the range [-32768, 32767].

The number of samples should be a multiple of 8 and the minimum waveform length is 128 samples.

The file has no header.

You can generate binary files using MALTAB, we do provide an example in the software package, you will find it in C:\Program Files\Agilent\N8241A\Matlab\Examples\example7.m.