Automatically Launching Applications - Matrox 4Sight User Manual

Hide thumbs Also See for 4Sight:
Table of Contents

Advertisement

62
Chapter 4: Developing an application for Matrox 4Sight under Windows NT Embedded

Automatically launching applications

With Matrox 4Sight, you can use the C:\AUTOST.BAT file to
run your application automatically at startup.The Autost.bat
file is a batch file that is called by default at startup. When a
BAT file is called, each line in this file is interpreted and
executed by the operating system.
The C:\AUTOST.BAT file might be processed before some
Windows NT Embedded device driver initializations are
complete. Therefore, if you want to launch your application
from Autost.bat, you must synchronize the execution of your
application with the end of the MIL driver initializations using
the syncserv command.
SyncServ [ServiceName] [/WAIT] [/STEP] [/TIMEOUT]
[/DOT] [/INFO] [/INFOF][/ERROR][/QUIET]
To do so, add the command needed to run your application after
calls to the syncserv command. This ensures that your
application is started after the driver is initialized.
For example, the MIL mfocus.exe example, which demonstrates
continuous image capture, is launched from C:\AUTOST.BAT.
Two syncserv commands with the wait option are used to
synchronize the execution of mfocus.exe with the end of the
initialization of the Matrox Meteor-II driver and the Matrox
Meteor-II/1394 driver. You can replace the call to mfocus.exe
with the call to your application.
Note that Autost.bat is executed by default because Windows
NT Embedded executes a shell command line that is stored in
the registry. By default, the shell command line is set to the
following:
CMD /K C:\AUTOST.BAT

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents