Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/delphi/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vb.net 使用ReadExisting获取缓冲区中接收的数据的长度_Vb.net - Fatal编程技术网

Vb.net 使用ReadExisting获取缓冲区中接收的数据的长度

Vb.net 使用ReadExisting获取缓冲区中接收的数据的长度,vb.net,Vb.net,我需要在VB中获得串行端口中接收到的缓冲区的长度。我正在使用serial1.ReadExisting。数据的长度是可变的,在读卡器rfid中未建立分隔符字节。serial1.ReadExisting的结果应为数组。如何将其放入更改长度的变量中,或者如何获取serial1.ReadExisting的长度?您是否尝试过将?Dim n作为Integer=UhfRfid.BytesToRead Dim selectag作为Byte=New Byten-1{}读取

我需要在VB中获得串行端口中接收到的缓冲区的长度。我正在使用serial1.ReadExisting。数据的长度是可变的,在读卡器rfid中未建立分隔符字节。serial1.ReadExisting的结果应为数组。如何将其放入更改长度的变量中,或者如何获取serial1.ReadExisting的长度?

您是否尝试过将?Dim n作为Integer=UhfRfid.BytesToRead Dim selectag作为Byte=New Byten-1{}读取