完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好我已经在VEE Pro 9.3中编写了一个与Arduino Pro Mini和Arduino UNO接口的程序。
我遇到的问题不是看到或与Arduinos建立联系。 它更多地与设备通信有关。 例如,我有多个函数可以读写Arduinos。 任何时候我单独运行这些功能都可以按预期工作。 当我尝试完整地执行VEE程序时,主要问题就出现了。 在我的程序中,函数首先写入/读取Arduino Pro Mini。 没问题。 然后另一个函数写入/读取Arduino Uno。 再也没有问题。 然后当程序进入第三个包含类似的写入/读取到Arduino Pro Mini VEE的函数时,会立即发出811错误。 此时我知道我的连接和地址是正确的,因为我已经建立了写/读功能。 再一次,我可以一次又一次地一个接一个地执行这些功能。 唯一的问题是当我完整地执行VEE程序时。 任何想法都会受到欢迎。 以上来自于谷歌翻译 以下为原文 Hello I have written a program in VEE Pro 9.3 that interfaces with an Arduino Pro Mini and an Arduino UNO. The issue that I have isn't so much seeing or establishing a connection with the Arduinos. It has more to do with communication to the devices. For example I have multiple functions that read and write to the Arduinos. Anytime I run the functions separately all works as intended. The main problem comes in when I try to execute the VEE program in its entirety. In my program a function first writes/reads to the Arduino Pro Mini. No problems at all. Then another function writes/reads to the Arduino Uno. Again no problems at all. Then as the program gets into the third function that contains similar write/reads to the Arduino Pro Mini VEE immediately spits out an 811 error. At this point I know my connections and addresses are correct because I have already established write/read capability. Again, I can execute the functions all day on their own one after another over and over again. The only problem is when I execute the VEE program in its entirety. Any thoughts would be welcome. |
|
相关推荐
2个回答
|
|
以下是VEE吐出的错误:发生I / O错误或超时 - VISA错误:传输期间发生溢出。
chara错误号码:811在事务编号3中再次出现零连接问题。 我开始删除我的代码块并重新排序事件。 如果我在第一个函数中读取/写入迷你,然后再直接在Main(相同的代码块中没有嵌套在函数中),我没有问题。 如果我在第一个函数中读取/写入迷你,然后执行一些与Arduino mini无关的对象,然后在Main中与迷你对话,之后我得到上面提到的错误。 以上来自于谷歌翻译 以下为原文 Here is the error that VEE is spitting out: I/O error or timeout occurred--VISA error: An overrun occurred during transfer. A chara Error number: 811 In transaction number 3 Again, there are zero connection issues. I started to remove chunks of my code and re-sequenced events. If I read/write to the mini in the first function and then again directly in the Main (same chunk of code just not nested in the function) I have no issues. If I read/write to the mini in the first function then execute a few objects that have nothing to do with the Arduino mini and then talk to the mini in the Main thereafter I get the error mentioned above. |
|
|
|
问题已经解决。
编写并上传到Arduino Mini Pro的代码在循环期间不断打印“test”一词。 想到这是以某种方式与VEE同步的必要条件。 这很快就填满了缓冲区。 此打印已从循环中删除,问题消失了。 看来,一旦你通过播放你的VEE程序与Arduino联系,带有它的缓冲区就会在第一次读取后启动。 根据您打印的频率和缓冲区大小限制,一旦缓冲区溢出,通信将停止。 程序停止并重新启动后,缓冲区将重置。 以上来自于谷歌翻译 以下为原文 The issue has been resolved. The code that was written and uploaded onto the Arduino Mini Pro was constantly printing in the word "test" during it's loop. The thought was that this was necessary to sync with VEE somehow. This was filling the buffer up quickly. This print in was removed from the loop and the issue is gone. It appears that once you make contact with an Arduino by playing your VEE program the buffer with it is initiated after the first read. Depending on how often you are printing out and your buffer size limit, communication will stop once the buffer is overrun. The buffer will reset once the program is stopped and started again. |
|
|
|
只有小组成员才能发言,加入小组>>
1271 浏览 0 评论
2371 浏览 1 评论
2187 浏览 1 评论
2061 浏览 5 评论
2943 浏览 3 评论
1082浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
744浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
902浏览 0评论
1271浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-18 19:11 , Processed in 1.270093 second(s), Total 49, Slave 43 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号