Functions by API

Total functions: 106

IGWv4Application

Function Description
AppendEcuStatus([in] BSTR path, [in, optional] VARIANT options) Append to ECU status messages.
ClearEcuStatus([in, optional] VARIANT options) Clear ECU status messages.
Click([in] VARIANT options) Simulate a mouse click.
CloseCalibration([in] IGWv4FileOptions *options) Closes the currently open calibration.
CloseTab([in] VARIANT tab) Close the given tab.
CloseWindow([in] VARIANT options, [out, retval] VARIANT *result) Close a window (if possible).
ConnectEcu() Connect to an ECU.
CreateFileOptions([out, retval] IGWv4FileOptions **options) Create an instance of IGWv4FileOptions that can be used to modify the behaviour of various functions that deal with files in one way or another.
CreateOptionsMap([out, retval] IGWv4OptionsMap **options) Create an instance of IDashOptionsMap that can be used to modify the behaviour of various functions that accept options.
CreatePortList([out, retval] IGWv4Ports **retval) Creates an interface for accessing/configuring the various ECU comms ports.
CreateScript([out, retval] IGWv4Script **script) Create an instance of IGWv4Script that can be used to compile and execute scripts within GWv4.
DisconnectEcu() Disconnect from the currently connected ECU (if any).
EnumerateWindows([in, optional] VARIANT options, [out, retval] BSTR *result) Enumerate Windows in the application.
FocusWindow([in] VARIANT options) Focus & raise a window (if possible).
GenerateHelpInfo([in, optional] VARIANT options, [out, retval] BSTR *result) Generate Help Information as JSON.
GetObject([in] BSTR type, [in] BSTR name, [in, optional] VARIANT options, [out, retval] IGWv4EcuObject **ret) Get an object of the specified type (e.g. Channel, Option, Map, Table).
GetProperties([in] VARIANT options, [out, retval] VARIANT *result) Get all properties from a window / view.
GetProperty([in] VARIANT options, [in] BSTR name, [out, retval] VARIANT *result) Get a single property from a window / view.
InstallEcu([in] BSTR path) Installs the ECU definition file from the given path.
InvokeAction([in] BSTR action_id, [in, optional] VARIANT options) Invokes an action with the specified ID.
Keyboard([in] VARIANT options) Simulate a keyboard.
LoadLayout([in] BSTR path, [in, optional] VARIANT options) Load a layout (gxt) file.
NewCalibration([in] BSTR identity, [in, optional] VARIANT options) Create a new calibration file using the given identity json string.
OpenCalibration([in] BSTR path, [in] IGWv4FileOptions *options) Opens the calibration file specified by ‘path’.
SaveCalibration([in] IGWv4FileOptions *options) Saves the current calibration by its current file name.
SaveCalibrationAs([in] BSTR path, [in] IGWv4FileOptions *options) Saves the current calibration with a new file name.
SaveLayout([in] BSTR path, [in, optional] VARIANT options) Save a layout (gxt) file.
SetProperties([in] VARIANT options, [in] VARIANT props) Set mutiple properties on a window / view.
SetProperty([in] VARIANT options, [in] BSTR name, [in] VARIANT value) Set a single property on a window / view.
SetSimulationProperty([in] VARIANT options) Set a simulator property or Channel value.
ShowTab([in] VARIANT tab) Show the given tab.
SimulateEcu([in] VARIANT options) Simulate an ECU.
TakeScreenShot([in, optional] VARIANT options, [out, retval] VARIANT *result) Take a screenshot of a window or the whole application.

IGWv4Ecu

Function Description
CheckNotRunningFlag([out, retval] IGWv4Job **job) Check the ECU is not running.
ClearCalibrationToDefaults([out, retval] IGWv4Job **job) Erase calibration file data from ECU and set values to defaults where defined.
ClearCalibrationToZero([out, retval] IGWv4Job **job) Erase calibration file data from ECU and set values to zero.
Connect([in] IGWv4FileOptions *options) Connect to an ECU.
Disconnect([in] IGWv4FileOptions *options) Disconnect from the currently connected ECU (if any).
EraseEcuFile([in] int type, [out, retval] IGWv4Job **job) Erase file from ECU.
EraseLog([out, retval] IGWv4Job **job) Erase log from ECU.
ProgramFirmware([in] BSTR path, [out, retval] IGWv4Job **job) Program Firmware.
ProgramGpsBeaconStartLine([in] double start_longitude, [in] double start_latitude, [in] double end_longitude, [in] double end_latitude, [in] double heading_radians, [out, retval] IGWv4Job **job) Program GPS beacon start line.
ReadCalibration([in] BSTR path, [in] IGWv4FileOptions *options, [out, retval] IGWv4Job **job) Read the calibration file from ECU and save to file specified by ‘path’.
ReadEcuFile([in] int type, [in] BSTR path, [out, retval] IGWv4Job **job) Read file from ECU and write to disk.
ReadEHL([in] BSTR path, [out, retval] IGWv4Job **job) Read the Engine History Log and write to file.
ReadLog([in] BSTR path, [out, retval] IGWv4Job **job) Read log from ECU.
StoreChanges([out, retval] IGWv4Job **job) Programs the checksum in the ECU and causes calibration data to be stored in non-volatile memory (saved on ECU).
VerifyCalibration([out, retval] IGWv4Job **job) Read the calibration file from ECU and check it matches the currently loaded calibration file.
WriteCalibration([in] BSTR path, [in] IGWv4FileOptions *options, [out, retval] IGWv4Job **job) Write a calibration file to ECU.
WriteEcuFile([in] int type, [in] BSTR path, [out, retval] IGWv4Job **job) Load ECU file from disk and write to ECU.

IGWv4EcuObject

Function Description
GetAttribute([in] VARIANT name, [out, retval] BSTR *result) Get attribute with given name.
GetAxis([in] unsigned int axis, [out, retval] IGWv4EcuObject **value) Get object representing the specified axis.
GetRaw([in, optional] VARIANT *axes, [out, retval] VARIANT *value) Get the raw value of the object.
GetReal([in, optional] VARIANT *axes, [out, retval] VARIANT *value) Get the real value of the object.
GetString([in, optional] VARIANT *axes, [out, retval] BSTR *value) Get the string value of the object.
HasAttribute([in] VARIANT name, [out, retval] BOOL *result) Determine if attribute exists.
RawFromReal([in] VARIANT real, [in, optional] VARIANT *axes, [out, retval] VARIANT *raw) Convert real value to raw value.
RealFromRaw([in] VARIANT raw, [in, optional] VARIANT *axes, [out, retval] VARIANT *real) Convert raw value to real value.
SetRaw([in] VARIANT value, [in, optional] VARIANT *axes) Set the raw value of the object.
SetReal([in] VARIANT value, [in, optional] VARIANT *axes) Set the real value of the object.
SetString([in] VARIANT value, [in, optional] VARIANT *axes) Set the string value of the object.
StringFromRaw([in] VARIANT raw, [in, optional] VARIANT *axes, [out, retval] BSTR *result) Convert raw value to string value.

IGWv4EcuObject2

Function Description
Refresh([out, retval] IGWv4Job **job) Start a one-shot read of the whole object from the ECU.

IGWv4Job

Function Description
Cancel(void) Cancels the Job.
Wait(void) Wait for the Job to complete.

IGWv4OptionsMap

Function Description
GetProperty([in] BSTR name, [out, retval] VARIANT *retval)
SetProperty([in] BSTR name, [in] VARIANT value) properties are made available by the IDispatch interface (late-binding).

IGWv4PCLogging

Function Description
AddMarker() Add a marker to the log at the current point in time.
AppendChannel([in] BSTR name, [out, retval] BOOL *retval) Set name of the channel at the specified index in the PC logging list.
AppendParameter([in] BSTR name, [out, retval] BOOL *retval) Set name of the channel at the specified index in the PC logging list.
ClearChannelList() Remove all channels from the PC logging list.
ClearParameterList() Remove all channel from the PC logging list.
CloseTab() Close the PC logging tab.
CreateExporter([in] BSTR filename, [out, retval] IGWv4PCLoggingExport **exporter) Create a PC logging exporter.
CreateTab([in] BOOL focus_tab) Adds the PC logging tab to the GWv4 UI.
GetChannel([in] unsigned int index, [out, retval] BSTR *retval) Get name of the channel at the specified index in the PC logging list.
GetChannelUpdateRateCode([in] unsigned int index, [out, retval] int *rate) Get the update rate of the channel at the specified index in the PC logging list.
GetParameter([in] unsigned int index, [out, retval] BSTR *retval) Get name of the channel at the specified index in the PC logging list.
GetParameterUpdateRateCode([in] unsigned int index, [out, retval] int *rate) Get the update rate of the channel at the specified index in the PC logging list.
RemoveChannel([in] unsigned int index, [out, retval] BOOL *retval) Set name of the channel at the specified index in the PC logging list.
RemoveParameter([in] unsigned int index, [out, retval] BOOL *retval) Set name of the channel at the specified index in the PC logging list.
SetChannel([in] unsigned int index, [in] BSTR name, [out, retval] BOOL *retval) Set name of the channel at the specified index in the PC logging list.
SetChannelUpdateRateCode([in] unsigned int index, [in] int rate) Set the update rate of the channel at the specified index in the PC logging list.
SetParameter([in] unsigned int index, [in] BSTR name, [out, retval] BOOL *retval) Set name of the channel at the specified index in the PC logging list.
SetParameterUpdateRateCode([in] unsigned int index, [in] int rate) Set the update rate of the channel at the specified index in the PC logging list.
Start([in] BSTR filename, [out, retval] BSTR *output_file) Starts PC logging to the given output GLO file.
Stop([out, retval] BSTR *output_file) Stops PC logging.

IGWv4PCLoggingExport

Function Description
Export([in] BSTR filename, [in] IGWv4FileOptions *options, [out, retval] IGWv4Job **job) Export the GLO file to STF format.
GetChannel([in] unsigned int index, [out, retval] BSTR *retval) Get name of the channel at the specified index in the PC logging list.
GetChannelExportRate([in] unsigned int index, [out, retval] GWv4StfChannelRate *rate) Get the update rate of the channel at the specified index in the PC logging list.
GetParameter([in] unsigned int index, [out, retval] BSTR *retval) Get name of the channel at the specified index in the PC logging list.
GetParameterExportRate([in] unsigned int index, [out, retval] GWv4StfChannelRate *rate) Get the update rate of the channel at the specified index in the PC logging list.
SetChannelExportRate([in] unsigned int index, [in] GWv4StfChannelRate rate) Set the STF export rate of the channel at the specified index in the PC logging list.
SetParameterExportRate([in] unsigned int index, [in] GWv4StfChannelRate rate) Set the STF export rate of the parameter at the specified index in the PC logging list.

IGWv4Ports

Function Description
GetPortDevice([in] unsigned int index, [out, retval] BSTR *retval) Get device ID for the port at the specified index in the port list.
GetPortMemento([in] unsigned int index, [out, retval] BSTR *retval) Get internal ‘memento’ for the port at the specified index in the port list.
GetPortName([in] unsigned int index, [out, retval] BSTR *retval) Get friendly name of the port at the specified index in the port list.
GetPortType([in] unsigned int index, [out, retval] int *retval) Get friendly name of the port at the specified index in the port list.
Refresh([in] BSTR typelist) Refresh the ports list. Blocks execution until complete.
SelectPort([in] int type, [in] BSTR device, [out, retval] BOOL *retval) Set the port for connecting with. The port must exist in the list.

IGWv4Script

Function Description
Compile([in] BSTR script, [out, retval] BOOL *ok) Compiles the given script.
CompileFile([in] BSTR script_file, [out, retval] BOOL *ok) Compiles the given script file.
Execute([out, retval] VARIANT *ret) Executes the given script.
GetFunction([in] BSTR name, [out, retval] IGWv4ScriptFunction **func) Gets a handle to a function in the script, which can subsequently be called multiple times.

IGWv4ScriptFunction

Function Description
Bind([out, retval] int *ok) Bind the function to the script if it was recompiled.
Call([in] SAFEARRAY(VARIANT) args, [out, retval] VARIANT *ret) Calls the function (will automatically attempt to bind if not already done so or if the script was recompiled). If the function cannot be bound, this will result in an error E_INVALIDARG.