StandaloneGetDefaultConfig
Syntax
dword StandaloneGetDefaultConfig(char cfgNameBuffer[], dword cfgNameBufferLength)
Function
Gets the name of the default configuration in standalone mode. This is the standalone configuration, which gets loaded when standalone mode is activated or the runtime kernel is started after reboot. The command can be used while standalone mode is running. It is also useful to determine whether standalone mode is running or not. A returned configuration name consists of the file name and the extension, for exampleCANSystemDemo.rtcfg.
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=StandaloneGetDefaultConfig(cfgName,elcount(cfgName));write("StandaloneGetDefaultConfig returns %d %s",cfgRet,cfgName);}
[StandaloneGetCurrentConfig](/en/syntax/general/math/standalonegetcurrentconfig) | [StandaloneConfigSetDefault](/en/syntax/general/math/standaloneconfigsetdefault) | [StandaloneConfigOpen](/en/syntax/general/math/standaloneconfigopen)