/// <summary> /// Opens a connection to a MicroTorque device. /// </summary> /// <param name="connStr">Connection string of device to open, see documentation of MTCom.ComInterface.</param> /// <param name="protocol">Protocol to use.</param> /// <param name="param">Protocol parameter (reserved for future use).</param> /// <exception cref="MicroTorque.Exceptions.MTComException"></exception> public override void Open(string connStr, MTCom.ComProtocol protocol, int param) { lock (threadLock) { base.Open(connStr, protocol, param); } }
/// <summary> /// Opens a connection to a MicroTorque device. /// </summary> /// <param name="devInfo">Device info structure as received from MTCom.SafeNativeMethods.GetDeviceEntryEx.</param> /// <exception cref="MicroTorque.Exceptions.MTComException"></exception> public void Open(MTCom.DeviceInfo devInfo) { this.Open(devInfo.DevId, MTCom.ComProtocol.MT_PROT_ASCII, 0); }