NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

有关通过TCP/IP传输socket的问题

现在有一个系统,其数据已经采集到一块单片机上并经过处理,想通过工业以太网用网线将单片机板子上的数据传到上位机上并进行界面组态,比如说分别显示温度,液位等等,现在就是单片机的它发送数据的形式是socket形式,将各个变量一起送入的是缓存区,试问单片机和我上位机应该怎么通讯(注意他那边只是单片机,提供端口)?然后怎样才能将比如温度,液位等分别从缓存中取出来并实时变化?
万分感谢~~     
0 项奖励
1 条消息(共 4 条)
4,984 次查看

Your case is not hard .

firstly, your device must have "rabbit" network connect confer, SCM writed a solid command ( program )for your device, example, a string,

As LV listens a IP port read its sending command, SCM read the command from LV sent, SCM would compare the receive string.

and take the action itself corresponding. and I suggest that LV is server, and your device is client. Please note SCM device's response time is not fast. LV should give much delay time for it.

________________________________________________________


Try to make everything Automatic
0 项奖励
2 条消息(共 4 条)
4,982 次查看
YUkee,你好,labview中有一个datesocket通讯的功能,不知道能不能用到本贴的项目中?如果可以,怎么用?有没有这方面的例子可以参考呢?我刚起步,谢谢你的指导~
0 项奖励
3 条消息(共 4 条)
4,975 次查看
在find example中有很多例子,一些设置是你要在选择datasocket manage,然后有一些设置
0 项奖励
4 条消息(共 4 条)
4,973 次查看