CAPL Script

StandaloneGetCurrentConfig

Syntax

dword StandaloneGetCurrentConfig(char cfgNameBuffer[], dword cfgNameBufferLength)

Function

Returns the file name of the currently loaded configuration in standalone mode. It includes the file extension, but no path information, for exampleCANSystemDemo.rtcfg. The function can be used in standalone mode. It is also useful to determine whether standalone mode is active or not.

Parameters

cfgNameBuffer Space for the returned name.

cfgNameBufferLength Length of the buffer.

Return Values

0: Successful operation

1: Buffer too small

2: Not in standalone mode

on start{char cfgName[200];DWORD cfgRet;cfgName[0]=0;cfgRet=StandaloneGetCurrentConfig(cfgName,elcount(cfgName));write("StandaloneGetCurrentConfig returns %d %s",cfgRet,cfgName);}

[StandaloneGetDefaultConfig](/en/syntax/general/math/standalonegetdefaultconfig) | [StandaloneConfigSetDefault](/en/syntax/general/math/standaloneconfigsetdefault) | [StandaloneConfigOpen](/en/syntax/general/math/standaloneconfigopen)