verGetAppName (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

1.00 / 1.00.00


verGetAppName will return the application name that was previously set with the verSetAppProfile function or via Project: Settings.

 

Input:                

None.

 

Returns: STRING

The name of the application.

 

Declaration:

FUNCTION verGetAppName : STRING;

 

 

Example:

INCLUDE rtcu.inc
 
VAR
  UpgChk : verCheckUpgrade;
END_VAR;
 
PROGRAM test;
 
  // Get Application name and version
  DebugFmt(message := "Application: " + verGetAppName() + " \1.\2",
           v1 := verGetAppVersion() / 100,
           v2 := verGetAppVersion() MOD 100);
  ...
 
BEGIN
  UpgChk();
  ...
  // is Application ready to reset?
  IF ... THEN
    // is background upgrade ready?
    IF UpgChk.application OR UpgChk.firmware THEN
        // Reset RTCU device. The firmware or application is updated automatically
        boardReset();
    END_IF;
  END_IF;
  ...
END;
END_PROGRAM;