Automatically Launching Applications; Syncserv Utility - Matrox Iris GT with MIL Manual

Hide thumbs Also See for Iris GT with MIL:
Table of Contents

Advertisement

56 Chapter 4: Creating applications for your Matrox Iris GT

Automatically launching applications

By adding commands to the autost.bat file, you can also automatically launch any
MIL/MIL-Lite application, MIL/MIL-Lite example, or your own application.
Automatically launching applications
To automatically launch your own application (for instance, MyApp.exe) every
time that you log into your Matrox Iris GT, do the following:
1. Locate the following command lines in the autost.bat file:
REM CMDWND RESTORE
REM "C:\MyFolder\MyApp.exe"
2. Remove the REM command from both command lines so that these lines are
executed when the autost.bat file is run and replace C:\MyFolder\MyApp.exe with
the name and path of your application.
3. Save the file.
Now, every time that you log into your smart camera, your application will be
launched automatically.

SyncServ utility

It is important that the autost.bat file synchronizes the execution of your
application with the end of the device driver initialization. If a program tries to
use a device whose driver has not been initialized, errors can result. The necessary
synchronization can be achieved using the Matrox Services Synchronization utility
(SyncServ utility).
SyncServ [ServiceName] [/QUIET] [/WAIT] [/DOT] [/TIMEOUT=DelayInSecs]
For example, to synchronize the execution of mdemo.exe with the end of the
non-paged memory check, call SyncServ with the wait option as follows:
SyncServ mtxdma0 /QUIET /WAIT /DOT /TIMEOUT=%TIMEOUT%

Advertisement

Table of Contents
loading

Table of Contents