![Vision Components VC Smart Camera Скачать руководство пользователя страница 48](http://html1.mh-extra.com/html/vision-components/vc-smart-camera/vc-smart-camera_getting-started_1031724048.webp)
Getting Started VC Smart Cameras
44
8.6 Starting Camera Programs with an Autoexec
Together with the VCRT and VCLIB Libraries - all files mentioned in this section are included in the
demo files that are copied to:
C:\ti\MyProjects\Demo Programs\Utility Demos\AutoexecC:\ti\myprojects\ Demofiles
VRCTXXX\Autoexec (check the “Support News” for an up to date demo program structure).
Steps for generating an Autoexec file:
1. Edit the file ASCII.INP – Make sure that a Return (CR + LF) is inserted at the end of each line.
The command in that line will not be executed otherwise! This is often the reason why
programs are not executed.
!
2. Type in the commands and don't forget the RETURN after every command
for example:
bd 115200
/*sets the camera baud rate to 115200*/
sh 10000
/*sets the shutter speed to 10ms*/
…img3par &
/*starts a background program with lower priority
myprog
/*starts the program “myprog” previously uploaded into the camera EPROM*/
3. Execute the “cc_autoexec.bat” file in the directory mentioned above.
4. Upload the autoexec.msf file to the camera
The camera now starts the commands inside the autoexec file after every power up.
Alternatively the autoexec file can also be uploaded using FTP. Rename the Ascii.inp file into
autoexec.001 after editing and upload this file directly into the flash memory using a standard
FTP client.
8.6.1
Preventing the execution of an autoexec file for Serial cameras
If the camera executes a program started after power up, this is started through an autoexec file in the
camera memory. To bypass the execution of the Autoexec, press the “Esc” button on your keyboard
repeatedly during power up. The terminal program on the PC side (e.g. TeraTerm, HyperTerminal,
ProComm) has to be set to 9600 Bd during this process.
8.6.2
Preventing the Execution of an Autoexec file for Ethernet cameras
1. Execution of an Autoexec can be bypassed by attempting to connect with the terminal program
while the camera is booting. The camera still uses its current IP address. This works best if the
connection within the camera is started shortly after connecting the camera to a power supply
(step 2, table section 8.3). This prevents the autoexec file from execution. The IP address set with
a #IP file in the camera memory is kept (this method may be difficult with fast booting VC4XXX
cameras).
1996-2011 Vision Components GmbH Ettlingen, Germany
Getting_Started_VC.pdf