完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好,我到目前为止转移一个arb是不成功的。
使用二进制块模式直接在我的程序内波形进入函数发生器。 我使用二进制整数列表成功传输。 对于二进制块模式,如果我要传输9个二进制值(例如0,100,1000,10000,30000,10000,1000,100,0),以下语法是否正确? Dim inputString As String =“DATA:ARB:DAC VOLAtiLE,#2180100100010000300001000010001000” - 其中2 =如果要跟随数字的数字 - 其中18 =要传输的字节数(9-16位数据值= 18字节) - 之间的DAC数据值 - 32767到32767,所有连接没有空格等我然后使用命令发送此字符串:visa32.viPrintf(vi,inputString + vbLf)我不想保存数据文件并加载它。 我在程序中生成点,然后发送它。 在我的特定节目中,我使用的是64000点,所以我将是128000.任何帮助将不胜感激! 我已经阅读了很多不同的指南,但我找不到任何专门针对vb.net的内容。 提前致谢 以上来自于谷歌翻译 以下为原文 Hi there, I have been so far unsuccessful in transferring an arb. waveform directly within my program into the function generator using the binary block mode. I was successful transferring using a list of binary integers. For the binary block mode, If I were to transfer 9 binary values (ex. 0,100,1000,10000,30000,10000,1000,100,0) would the following syntax be correct? Dim inputString As String = "DATA:ARB:DAC VOLATILE, #2180100100010000300001000010001000" - where 2 = number if digits to follow - where 18 = number of bytes to transfer (9-16bit data values = 18 bytes) - DAC data values between -32767 to 32767, all concatenated without spaces, etc I am then sending this string using the command: visa32.viPrintf(vi, inputString + vbLf) I do not want to save the data file and load it. I am generating the points within the program and then sending it over. In my particular program, I am using 64000 points, so my would be 128000. Any help would be appreciated!! I've read a lot of different guides but I cannot find anything specifically for vb.net. Thanks in advance |
|
相关推荐
3个回答
|
|
|
为了添加更新,我已经取得了一些进展,我认为这些进展正确。
上面的行应更改为以下内容:Dim inputString As String =“DATA:ARB:DAC VOLATILE,#218”+ arrData.ToString其中arrData的每个元素都存储要传输的值。 希望这有助于其他可能对它感兴趣的人。 以上来自于谷歌翻译 以下为原文 To add an update, I've made some progress which I think is on the right track. The above line should be changed to the following: Dim inputString As String = "DATA:ARB:DAC VOLATILE, #218" + arrData.ToString where each element of the arrData stores a value to be transferred. Hope this helps others who might be interested in it. |
|
|
|
|
客来看我可怜我看 发表于 2019-5-20 14:36 你现在有这个工作,还是需要一些帮助? 以上来自于谷歌翻译 以下为原文 Did you get this working now, or do you still need some assistance? |
|
|
|
|
|
嗨,我已经解决了二进制块模式传输的问题。
它与我上面发布的略有不同。 Dim arrData(numSamples - 1)因为Int16 for i as integer = 0 to numSamples-1 arrData(i)= ____(你的数据)结束状态= visa32.viPrintf(vi,command + vbCrLf)'command =“DATA:VOLATILE :CLEAR“作为字符串状态= visa32.viPrintf(vi,”DATA:ARB:DAC myWave,%* hb“& vbCrLf,arrData.Length(),arrData)谢谢! 以上来自于谷歌翻译 以下为原文 Hi, I have solved the issue binary block mode transfer. It is slightly different than what I posted above. Dim arrData(numSamples - 1) As Int16 for i as integer = 0 to numSamples-1 arrData(i) = ____ (your data) end for status = visa32.viPrintf(vi, command + vbCrLf) ' command = "DATA:VOLATILE:CLEAR" as a string status = visa32.viPrintf(vi, "DATA:ARB:DAC myWave, %*hb" & vbCrLf, arrData.Length(), arrData) Thanks! |
|
|
|
|
只有小组成员才能发言,加入小组>>
1844 浏览 0 评论
2739 浏览 1 评论
2640 浏览 1 评论
2449 浏览 5 评论
3458 浏览 3 评论
1845浏览 0评论
417浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 13:00 , Processed in 0.685104 second(s), Total 78, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1356