Queries the scanner attached to the specified port, retrieves the hardware configuration settings from the scanner, and makes it the active scanner for the machine.
Upon successful execution:
NOTE: The AutoConfigureScanner method
on an RS232 communications port
sends out characters at various
baud rates. This has the potential of causing odd behavior in non-scanner
serial devices connected to serial ports on which auto configure is performed.
Be sure to select the correct port before doing the auto-configure.
You can then call ScanningManager.ActiveScanner .Scanner.GetScannerConfig method to obtain configuration details in an object of type HardwareConfig Object .
Using the port defined in the method, the following information is detected by AutoConfigureScanner.
If you do not have prior knowledge of the scanner, you must query the user to obtain this information. Update HardwareConfig.DisableSelectStacker property to TRUE if there is not a select stacker, otherwise to FALSE if it does. If needed, alter any other HardwareConfig properties, and then call ScanningManager.ConfigureScanner method with the modified HardwareConfig object to update the configuration in ScanTools Plus software.
See Scanning Manager States and Valid Properties/Methods
See ScanningManager Events and Valid Properties/Methods
HRESULT AutoConfigureScanner([in] L_PORT_ENUM Port, [in] BOOL ShowConfigDlgOnFailure);
Identifies the port with the scanner to be queried for auto-configuration. Port is of type L_PORT_ENUM. Make certain you select a port that actually has a scanner attached. See L_PORT_ENUM for all values.
Do not use L_PORT_USE_CURRENT for AutoConfigure.
Identifies the action to take if a scanner is not detected on Port.
TRUE |
Display the ScanTools Plus Scanner Configuration dialog so the user can configure the scanner by entering values. |
FALSE |
–Returns an error. |
How to Manage the Connection to ScanTools Plus Link Runtime
See Help on Help for additional information on using this help file. See Scantron Technical Support for additional information on technical support and training options. See the ScanTools Suite System Requirements for further details on hardware and software requirements. ScanTools is a suite of products; the specific information you want may appear in the help for a different module. If you don't find what you're looking for here, try one of the following:
|
Scantron Corporation
Customer Service (forms, products, and services): 1-800-SCANTRON (722-6876) Technical Support: 1-800-445-3141 |
|
Copyright © 1998-2012 Scantron Corporation. All rights reserved. Use permitted only under license. www.scantron.com. No part of the Help or user guides may be reproduced in any form, or by any means, without express permission from Scantron Corporation. LINKS TO THIRD PARTY SITES This help system may contain links to third party websites ("Linked Sites"). The Linked Sites are not under the control of Scantron and Scantron is not responsible for the content of any Linked Site, including without limitation any link contained in a Linked Site or any changes or modifications to a Linked Site. Scantron is not responsible for web casting or any other form of transmission received from any Linked Site. Scantron provides Users with the ability to link the Assessment System to the Linked Sites as a convenience to you, and the inclusion of any link does not imply endorsement by Scantron of the Linked Site or any association with its operators. |