STARDiscover Class |
Namespace: Huarui.STARLine
The STARDiscover type exposes the following members.
| Name | Description | |
|---|---|---|
| STARDiscover |
Construction
|
| Name | Description | |
|---|---|---|
| Dispose |
Dispose the instance
| |
| Send |
Send command to STAR
| |
| Start |
Start Discover
| |
| Stop |
Stop discover
|
| Name | Description | |
|---|---|---|
| OnConnect |
device connected event
| |
| OnDisconnect |
device disconnected event
| |
| OnReceive |
reply from device received event
|
//creating an instance and attach instrument connection event. STARDiscover discover = new STARDiscover(); discover.OnConnect += Discover_OnConnect; discover.OnDisconnect += Discover_OnDisconnect; discover.OnReceive += Discover_OnReceive; discover.Start();
//stop monitoring when instrument connected and you want to control the instrument discover.Stop(); discover.OnConnect -= Discover_OnConnect; discover.OnDisconnect -= Discover_OnDisconnect; discover.OnReceive -= Discover_OnReceive; discover.Dispose(); discover = null;