当前位置:首页>科技>正文

谁能给我一个CVI做的串口调试程序呀

2024-06-30 10:39:33 互联网 未知 科技

谁能给我一个CVI做的串口调试程序呀?

谁能给我一个CVI做的串口调试程序呀

voidInitializeComport(intComport) { charCOMPORT[5]="" sprintf(COMPORT,"COM%d",Comport)

if(OpenComConfig(Comport,COMPORT,115200,0,8,1,500,500)MAX_DISPLAY_SIZE) len=MAX_DISPLAY_SIZE ret=ComRd(Comport,String,len)

if(ret==-1) { /*fail*/ } } 大致就这些吧,其他一些API可以参照CVI帮助

最新文章