Datalogic .NET SDK
Enable (Property)
Syntax
public bool Enable {get; set;}
Description
The enable state of the DataReady event. Set to true to start sampling data, false to stop receiving events .
Parameters Table
|
Type |
Parameter |
Description |
[in] |
- |
- |
- |
|
|
|
|
[return] |
- |
- |
TRUE if the instance of Datalogic.API.Device.AccStream is has the DataReady event enabled, FALSE otherwise. |
[on error] |
- |
|
The set will throw an ApplicationException error. |
Example
// Start/Stop button private void enableToggle_Click(object sender, EventArgs e) { try { accStream.Enable = !accStream.Enable; } catch (ApplicationException ex) { this.statusBar1.Text = "Error: " + ex.Message; } if (accStream.Enable) { this.enableToggle.Text = "Stop"; this.statusBar1.Text = "Success: Sampling"; } else { this.enableToggle.Text = "Start"; this.statusBar1.Text = "Success: Stopped"; } } |
See Also
Copyright © Datalogic ADC. All Right Reserved