...
Aptina Imaging software uses sensor specific .ini files for many of its applications. The .ini file contains groups of commands called presets. Each preset has a name enclosed in square brackets, like [Reset83269893]. Some presets are required for the DevWare application; while others can be added by the user. The DevWare application provides several tools which will allow the user to create and edit ini presets. There is also a function in the ApBase API which allows the user to load a preset from an .ini file in their own custom application (see ap_LoadINIPreset()).
...
[Reset] | Reset the sensor to its power-on state. Activated by the Reset button the DevWare toolbar. | |
[Demo Initialization] | The recommended register settings for the sensor in the demo environment. Activated by the Init button on the DevWare toolbar. | |
[DevWare Initialization] | Settings to initialize DevWare and the sensor for the demo environment. If this preset doesn't exist, Demo Initialization is used. | |
[SensorDemo Initialization] | Settings to initialize SensorDemo (DevWare /DEMO) and the sensor. If this preset doesn't exist, SensorDemo will fall back to DevWare Initialization or Demo Initialization. | |
[Monochrome Initialization] | Recommended register settings to use for the monochrome version of the sensor. | |
[Startup Wizard] | DevWare will run that instead of the Startup Wizard dialog. Doing that is unconditional, though. There is no way to run Startup Wizard from ini script. | |
[Viewfinder ON] | Switch into Preview mode. Activated by the Preview button on the DevWare toolbar. | |
[Viewfinder OFF] | Switch out of Preview mode. Activated by the Preview button on the DevWare toolbar. | |
[Video Capture ON] | Switch into Video Capture mode. Activated by the Initialize] | Create a file called prescan.ini and put it in the apps_data directory of the installation directory. In the file have a preset called [Initialize]. Note: There aren't separate initialize preset names per base board type, but it's possible to distinguish between, for example, Demo3 and 3X, with an IF_SERIAL command in the [Initialize] preset. |
[Startup Wizard] | DevWare will run that instead of the Startup Wizard dialog. Doing that is unconditional, though. There is no way to run Startup Wizard from ini script. | |
[Viewfinder ON] | Switch into Preview mode. Activated by the Preview button on the DevWare toolbar. | |
[Viewfinder OFF] | Switch out of Preview mode. Activated by the Preview button on the DevWare toolbar. | |
[Video Capture ON] | Switch into Video Capture mode. Activated by the Record button on the DevWare toolbar unless Screen capture only (no register changes) is selected on Sensor Control, Video Capture dialog. | |
[Video Capture OFF] | Switch out of Video Capture mode. Activated when video capture ends, unless Screen capture only (no register changes) is selected on Sensor Control, Video Capture dialog. | |
[Color Processing ON] | Enable software color processing. Activated by the Auto button on the DevWare toolbar. | |
[Color Processing OFF] | Disable software color processing. Activated by the Auto button on the DevWare toolbar. | |
[Camera 1] | Select primary sensor on a two-sensor system. | |
[Camera 2] | Select secondary sensor on a two-sensor system. | |
[Pre Still Capture] | Activated before a still image capture, unless Current Image is selected on Sensor Control, Still Capture dialog. | |
[Post Still Capture] | Activated after a still image capture, unless Current Image is selected on Sensor Control, Still Capture dialog. | |
[Data Types] | Define data types for sensor registers and bitfields. Activated at DevWare startup. Deprecated since the .xsdat files contain this information now. | |
[Register Tabs] | Define the tabs, groups, and controls for the optional "Scripts" version of the Register Dialog. | |
[Python:] | Python code that will be executed automatically when the file is opened in a Presets dialog in DevWare. This is a good place to put import statements, function def statements and any other definitions that may be used by other presets in the file. | |
[Python: Unload] | Python code that will be executed automatically when the Presets dialog is closed (including when DevWare exits). |
...
You may create your own presets using a text editor, or various tools in DevWare DevWareX.
The preset name may consist of any combination of ASCII characters (alphanumeric, symbolic, space, etc.) except "[", "]", "," or the sequence "//".
To execute the preset select it in the DevWare Presets dialog and click Load.
...
[Toolbar: …] | The preset will get a button on the User Toolbar assigned to it. See below. |
[Toolbar2: …] | The preset will get a button on the 2nd User Toolbar assigned to it. See below. |
[Python: …] | The preset contains Python code instead of ini commands. See the DevWare Python Development Guide document. |
[Hidden: …] | The preset will not appear in the DevWare Presets dialog list box. You can leave off the 'Hidden:' part in LOAD 83269893= commands. For example 'LOAD=PLL-On' can load [Hidden: PLL-On]. |
[Patch <id>; <color>; <description>] | A preset name formatted like this will be recognized as a firmware patch by the Load Patches dialog page of the Sensor Control dialog. |
...
If the name of a preset begins with "Toolbar:" or "Toolbar2:" then DevWare will create a button on the corresponding User Toolbar that executes the preset. The remainder of the preset name after "Toolbar:" or "Toolbar2:" will be used as the button label. You can further define the characteristics and behavior of the toolbar button with the ICON 83269893=, TOOLTIP 83269893=, MENUITEM 83269893= and SHORTCUT= special commands.
The maximum number of buttons on a User Toolbar is 20.
...
|
ICON | ICON | ICON = <icon name> [,CHECKED|RADIO= <register name>[:<bitfield name>]|STATE:<STATE variable> <condition>] [,ENABLED= <register name>[:<bitfield name>|:<mask>]|STATE:<STATE variable> <condition>] //<comment>
Write to a register or bitfield by name. Command works for any kind of register, variable or SFR. Example: Set "SEQ_CAP_MODE" variable to 0. FIELD_WR = SEQ_CAP_MODE, 0 //capture parameters, VIDEO Off |
Defines the icon image and button state for a User Toolbar button in DevWare. Only takes effect if the preset name begins with “Toolbar:” or “Toolbar2:”. If the <icon name> contains a dot “.” character, it's interpreted as a filename with a path relative to the ini file. The icon file can be a .ico or a .bmp (24x24 pixels, 32-bpp, R-G-B-alpha) file. Example: Load icon from file zoom.ico. Otherwise the name specifies a built-in icon image. The built-in images are different colored shapes. Specify the shape and color. The shapes are circle, square, triangle and star. The colors are black, brown, red, orange, yellow, green, blue, violet, gray and white. Example: Use a built-in icon image. |
...
Defines a drop-down menu item for a User Toolbar button in DevWare. Only takes effect if the preset name begins with "Toolbar:" or "Toolbar2:". This command causes the toolbar button behavior to change to a drop-down menu action. Note: if "LOAD=" is not supplied, then that MENUITEM will be disabled but still displayed. |
...