是德科技
直播中

潘小旋

8年用户 178经验值
私信 关注
[问答]

N8241A AWG如何创建与设备一起使用的bin文件

您好,我最近有一台N8241A AWG,我正在尝试创建一个可以与设备一起使用的bin文件。
但是,我目前还不知道如何创建这样的文件。
我找到了'importAgilentBin()'matlab函数,但我正在查看'exportAgilentBin()'的内容。
现在,我想在MATLAB中编写大量波形,我想编码,但我不知道从哪里开始。
我一直在倾注手册而没有找到答案。
编辑澄清 - 我正在寻找创建.bin文件,而不是直接将MATLAB连接到AWG。
谢谢你的帮助!
Nicholai编辑:FrenchyRaoul于2014年11月17日上午11:26

以上来自于谷歌翻译


     以下为原文

  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  

回帖(1)

杨梅

2018-11-5 11:03:20
我与AWG支持团队进行了交谈,他们不得不说:关于二进制文件,样本存储为[-32768,32767]范围内的16位整数。
样本数应为8的倍数,最小波形长度为128个样本。
该文件没有标题。
您可以使用MALTAB生成二进制文件,我们在软件包中提供了一个示例,您可以在C: Program Files  Agilent  N8241A  Matlab  Examples  example7.m中找到它。

以上来自于谷歌翻译


     以下为原文

  I spoke to the AWG support team and here is what they had to say:

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 FilesAgilentN8241AMatlabExamplesexample7.m.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分