NI產品與技術 討論區

取消
顯示結果 
搜尋替代 
您的意思是: 

使用STM TCP协议,myRIO与电脑进行无线通信遇到两个问题,导致程序停止运行。求大神帮忙

大家好,我正在做比赛项目,是关于激光采集,将myRIO接CMOS相机,用相机采集激光光斑,并进行图像处理,处理数据量较大,随后将处理结果与数据传回电脑,使用STM TCP协议,但是在使用过程中,第一个问题是启动下位机程序时时不时会出现error导致程序无法进行并自动停止。启动过程中出现创建TCP侦听器出错,7210001,这个问题一般是运行程序第二遍开始会出现,重启myRIO再启动程序没问题。侦听错误.PNG

第二个问题是在运行过程中,经常会出现写入TCP数据错误,error 3970001,直接导致程序停止运行,重新启动程序,就会出现第一个侦听问题。写入错误.PNG

请问一下这两个问题该如何解决,谢谢~万分感谢

0 積分
1 條訊息(共 4 條)
3,647 檢視

大家好,我正在做比赛项目,是关于激光采集,将myRIO接CMOS相机,用相机采集激光光斑,并进行图像处理,处理数据量较大,随后将处理结果与数据传回电脑,使用STM TCP协议,但是在使用过程中,第一个问题是启动下位机程序时时不时会出现error导致程序无法进行并自动停止。启动过程中出现创建TCP侦听器出错,7210001,这个问题一般是运行程序第二遍开始会出现,重启myRIO再启动程序没问题。侦听错误.PNG

第二个问题是在运行过程中,经常会出现写入TCP数据错误,error 3970001,直接导致程序停止运行,重新启动程序,就会出现第一个侦听问题。写入错误.PNG

请问一下这两个问题该如何解决,谢谢~万分感谢

0 積分
2 條訊息(共 4 條)
3,640 檢視

From Google translation:

Hello, I am doing the game project, is about laser collection, myRIO then CMOS camera, with the camera to collect laser light, and image processing, processing a larger amount of data, then the results and data will be transferred back to the computer, the use of STM TCP Protocol, but in the use of the process, the first problem is to start the next bit machine program from time to time error will cause the program can not be carried out and automatically stop. Start the process of creating a TCP listener error, 7210001, the problem is generally the first time running the program will appear, restart myRIO re-start the program no problem.

 

The second problem is running in the process, often appear to write TCP data error, error 3970001, directly lead to the program to stop running, restart the program, there will be the first listener problem.

 

I would like to ask these two questions how to solve, thank you very grateful

 

 

George Zou
0 積分
4 條訊息(共 4 條)
3,601 檢視