Datalogic .NET SDK
SoftTriggerStop (Method)
Syntax
public bool SoftTriggerStop()
Description
This stops any data acquisition in progress, regardless of the data type.
Parameters Table
|
Type |
Parameter |
Description |
[in] |
void |
|
- |
|
|
|
|
[return] |
bool |
|
True is returned on success, otherwise false is returned. |
[on error] |
FALSE |
|
- |
Example
{ private DecodeEvent dcdEvent; private DecodeHandle hDcd;
public Form1() { InitializeComponent(); InitDecodeEngine();// my } public void InitDecodeEngine() { // Make a new decoder handler. hDcd = new DecodeHandle(DecodeDeviceCap.Exists | DecodeDeviceCap.Barcode); } private void bScan_Click(object sender, EventArgs e) { // Start Scanning. This makes the scan // to read continuously the barcode // until the SoftTriggerStop() occurr. hDcd.SoftTrigger(DecodeInputType.Barcode, 5000); }
private void bScanStop_Click(object sender, EventArgs e) { hDcd.SoftTriggerStop(); // STOPS the scan process. } }
|
See Also
DecodeInputType (Enum), DecodeDeviceCap (Enum), Example #009.
Copyright © Datalogic ADC. All Right Reserved