Versions Compared

Key

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

...

Execute the ini file preset specified. If the sIniFile parameter is NULL or empty, the default ini file is used. If the sPreset parameter is NULL or empty, the default initialization procedure is executed, usually "Python:", if it exists, followed by "Demo Initialization".
After creating a camera device, call this function or CheckSensorState() to make sure the state of the object is synchronized with the state of the device.

LONG RunPython(BSTR sStatements)

Parameters

szStatements – Pointer to a text string consisting of executable Python statements.

Return Value

Error code.

Remarks

Invoke the Python interpreter to execute the given statements.

Note: If your Python statements expect the preset named "Python:" in the default ini file to be executed prior, you may need to do that explicitly in your application using LoadIniPreset().

LONG CheckSensorState(LONG nCheckFlags)

...