1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我试图在MXG中下载IQ信号。
IQ信号形成一个文本文件。 下面如果下载I部分信号的代码,我得到一个错误“ViTable :: lookup - session 4390912超出范围”unsigned char * ibuffer = new unsigned char[ I.count()* 2& #93 ;; for(int index = 0; index {int ivalue =(short)(8192 *(I.at(index)/ max_value + 1)); ibuffer[ index * 2] = ivalue / 256 ;; // i ibuffer的高字节[索引* 2 + 1] = ivalue - 256 * ibuffer[ index * 2&#93 ;; // i的低字节viWrite(vi,( ViBuf)ibuffer,I.count(),NULL);它适用于SICL命令“iwrite(vi,ibuffer,I.count(),NULL);”但是因为我用viWrite移动到VISa ...不工作 anymore.anyone有一个例子如何将IQ文件下载到MXG?问候,迈克尔 以上来自于谷歌翻译 以下为原文 Hi, l'm trying to download an IQ signal in an MXG. the IQ signal is form a text file. Below if the code to download the I part of the signal, l get an error "ViTable::lookup - session 4390912 is out of range"
it was working well with SICL command "iwrite(vi, ibuffer,I.count(),NULL);" but since l moved to VISa with viWrite...not working anymore. anyone has an example how to download IQ file to MXG ? regards, Michael |
|
相关推荐
2个回答
|
|
嗨迈克尔,我唯一能做的就是建议您参考编程指南中的示例,N5180-90005,第348页 - 357使用VISA和C#的Save and Recall编程示例;
以及从第358页开始的示例用户平面度修正下载使用C ++和VISA。 您可以通过引用这些示例来查看错误发生的位置,因为它们使用相同的编程语言。 问候 - 以上来自于谷歌翻译 以下为原文 Hi Michael, The only thing I can do is recommend that you refer to the examples in the Programming Guide, N5180-90005, page 348 – 357 Save and Recall Programming Example Using VISA and C#; and the example starting on page 358 User Flatness Correction Downloads Using C++ and VISA. You might see where you made an error by referring to these examples as they are using the same programming language. Regards - |
|
|
|
嗨,我遇到“iwrite”命令的一些问题,加载数据保持为0%。
你还记得你是怎么做到的吗? 部分代码:sprintf(cmd,“:MEM:DATA ”WFM1:FILE1 “,#%d%d”,strlen(s),bytesToSend); iwrite(id,cmd,strlen(cmd),0,0); iwrite(id,iqbuffer,bytesToSend,0,0); iwrite(id,“ n”,1,1,0); 问候。 以上来自于谷歌翻译 以下为原文 HI, I meet some problems with "iwrite" command, loading data stay to 0%. Did you remember how did you do that ? Part of code : sprintf(cmd, ":MEM:DATA "WFM1:FILE1", #%d%d", strlen(s), bytesToSend); iwrite(id, cmd, strlen(cmd), 0, 0); iwrite(id, iqbuffer, bytesToSend, 0, 0); iwrite(id, "n", 1, 1, 0); Regards. |
|
|
|
只有小组成员才能发言,加入小组>>
1300 浏览 0 评论
2379 浏览 1 评论
2199 浏览 1 评论
2068 浏览 5 评论
2955 浏览 3 评论
1149浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
761浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
957浏览 0评论
1300浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-30 22:34 , Processed in 1.750727 second(s), Total 78, Slave 62 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号