点击或拖拽改变大小

SerialBaseSetPipeSerial 方法

设置一个新的串口管道,一般来说不需要调用本方法,当多个串口设备共用一个COM口时才需要使用本方法进行设置共享的管道。
To set a new serial port pipe, generally speaking, you do not need to call this method. This method is only needed to set the shared pipe when multiple serial devices share the same COM port.

命名空间:  HslCommunication.Serial
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.0.5.0 (11.0.5.0)
语法
public void SetPipeSerial(
	PipeSerial pipeSerial
)

参数

pipeSerial
类型:HslCommunication.Core.PipePipeSerial
共享的串口管道信息
备注
如果需要设置共享的串口管道的话,需要是设备类对象实例化之后立即进行设置,如果在串口的初始化之后再设置操作,串口的初始化可能会失效。
If you need to set a shared serial port pipeline, you need to set it immediately after the device class object is instantiated. If you set the operation after the initialization of the serial port, the initialization of the serial port may fail.
参见