Download Movicon CE Reference Guide
Transcript
M O V I C O N C E _ P R O G R A M M E R _ G U I D E File Startup.bat: entouch OFF \"Storage Card"\MovCE\MovCE.exe \IPSM\Me30\test.movprj Using registries in automatic runs The method, which allows runs at Start-up using system registry keys, is normally valid for all devices. However, in order to do this you need to be able to access the system registry's configuration, which is usually impossible when not linked up to the right tools, such as the "Windows CE Remote Registry Editor" installed with the "Miscosof eMbedded Visual C++ 4.0" embedded development environment. The "HKEY_LOCAL_MACHINE\Init" registry key contains the list of executable files to be run at the device's startup. The files are listed under the LauchXX keys, where XX determines the run order. The other key, DependXX, permits the dependency to be specified (eg. Launch50 is not run until Launch40 has been successfully executed). Normally, but best to check from device to device, you can create a new key under "HKEY_LOCAL_MACHINE\Init", with a progressive number, for example, Launch60 (or a number higher than Launch50), is specified with the name of the executable to be run (note that this must be a .EXE file, such as Startup.exe),in our case this should be "MovCE.exe". If you wish the file to be run only after the other files have been run at startup, you should create a Depend60 and set the value to 32h (hex of 50). A word of warning: automatic runs may depend on the configuration type of the operating system installed in function with the hardware device. For any further information, please consult the manufacturer's manual of the hardware being used or refer to the Microsoft Platform Builder settings. Boot File When Movicon is run, it will search for the "MovCE.boot" file in the root of the Compact Flash at its startup. The file specifying the path and name of the project file to be run should be in this file. The file is in XML format and is structured as follows: <?xml version="1.0" encoding="ISO-8859-1" ?> <boot> <filename>\HDD\PROJECTS\TEST\TESTXCE\testxce.movprj</filename> </boot> The "MovCE.boot" file is automatically created in the root of the compact flash after the project has been uploaded This happens in automatic only when using the "MS Active Sync" option and by using a different plug-in programmed to manage this function. 62