Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Manual Capture

The settings from an INI file Preset can be captured by using the “Log” dialog in DevWareX.

  1. Start DevWareX and Probe. When the “Startup Wizard” dialog appears, select “Cancel”.

  2. Open the “Log” dialog, and select “Enable Log”.

  3. Open the “Presets” dialog, and run “Demo Initialization” or the specific Preset you are interested in.

  4. When the preset completes, in the “Log” dialog select the output format.

    1. Most likely this will be “Hex” and “Hex” for Address and Data values (the 2 pull-downs).

  5. Then select “Save to Ini…”.

  6. The resulting INI file contains “REG=<addr>, <data>” pairs.

Note; this method does NOT account for read/modify/write operations.
It shows up in the INI file as a “REG=” – a full register write.
But from a power-on perspective, that won’t matter; power-cycle the sensor to set default values.

To see the read/modify/write operations, enable “Ini Debug” to see if there are “BITFIELD=” commands.
That doesn’t mean it is an issue unless there are multiple of those to the same register.

Scripted Capture

Generating and saving Log window logs can be automated.

DevWareX can be invoked from the command line or .bat file with command line parameters to load an XSDAT file and INI file and run an INI file preset, without need of a camera.

The INI preset invoked from the command can be a special one that enables the Log, runs a sensor setting preset, and saves the Log.

This technique has been in use for some time for SOCs and ISPs to generate a sequence of register writes from INI settings that are mostly written in Python.