31
Signametrics
After initialization, the Windows DLL default modes and parameters on your Scanner are set up as follows:
•
Configuration is set to Disabled
•
Trigger output is disabled
•
Actuation time is set to 10ms
•
Step time is set to 100ms
5.5 Using the SM4040 DLL with LabWindows/CVI
®
When using the SM4040 DLL with LabWindows/CVI, you should read the
LabWin.txt
file included with the
software diskette.
NOTE: Although these measurement functions use LabWindows/CVI® and the LabWindows/CVI(R)
Test Executive, they are not necessarily coded to LabWindows® instrument driver standards.
5.6 Windows Command Language
The following section contains detailed descriptions of each function of the Windows command language. Those
commands that pertain to only the SM2040 are indicated. Most functions return an error code. The code can either
be retrieved as a string using
SCANErrString()
function, or it may be looked up in the SM4040.H header file.
SCANAbort
H/W access Command
;
Polled Command
;
Description
Abort current operation.
#include "SM4040.h"
int SCANAbort
(
int
iScan
)
Remarks
This function aborts in process, polled function such as:
SCANAutoScan()
,
SCANTrigScan()
,
SCANTrigAutoScan()
etc.. It terminates the current operation and
prepares the Scanner ready to accept a new command.
Parameter
Type/Description
iScan
int
Identifies the Scanner. 0 for the first scanner.
Return Value
The return value is one of the following constants.
Value
Meaning
SCAN_OKAY
Operation successfully terminated
Negative value
Error code.
Example
SowFault(SCANAbrt(0)); // VisualBasic application
Содержание SM4020
Страница 61: ...Signametrics 60...