CAPL Script

GetConfigurationName

Syntax

long getConfigurationName(char buffer[], dword bufferLength);

Function

Returns the file name of the currently loaded configuration. It includes neither the file extension nor any path information, for exampleCANSystemDemo.

Parameters

buffer Space for the returned name.

bufferLength

Length of the buffer.

Return Values

-1 Buffer too small

= 0 Operation successful. The return value specifies the length of the configuration name.

on start{char cfgName[260];dword ret;ret = getConfigurationName(cfgName,elcount(cfgName));write("getConfigurationName returns %d %s", ret, cfgName);}