初学者请教一个关于labview使用tcp连接的简单问题
时间:12-13
整理:3721RD
点击:
使用labview的tcp连接,可以往其他tcp应用发送数据
但是无法接受数据
查看ni的文档,提示使用tcp read必须:
With the TCP Read function, you must specify the number of characters you wa
nt to read.
Use the following methods to handle different sized commands:
Precede the command and the result with a fixed size parameter that specifi
es the size of the command or
result. In this case, read the size parameter and then read the number of ch
aracters the size parameter specifies.
This method is the most flexible.
Make each command and result a fixed size. When a command is smaller than t
he size you specify, you can
pad it to the fixed size. This method is the most efficient.
Follow each command and result with a specific terminating character. Read
data in small units until you
reach the terminating character.
在哪里确定接受字符串长度?我接受不到数据,是不是由于没有先指明字符数?
请知道的达人指教一下,谢谢谢谢了
.48
但是无法接受数据
查看ni的文档,提示使用tcp read必须:
With the TCP Read function, you must specify the number of characters you wa
nt to read.
Use the following methods to handle different sized commands:
Precede the command and the result with a fixed size parameter that specifi
es the size of the command or
result. In this case, read the size parameter and then read the number of ch
aracters the size parameter specifies.
This method is the most flexible.
Make each command and result a fixed size. When a command is smaller than t
he size you specify, you can
pad it to the fixed size. This method is the most efficient.
Follow each command and result with a specific terminating character. Read
data in small units until you
reach the terminating character.
在哪里确定接受字符串长度?我接受不到数据,是不是由于没有先指明字符数?
请知道的达人指教一下,谢谢谢谢了
.48
请知道的达人告知答案,顶一顶,
跪求解答!急需
.48