Some guide about using variables please


#1

Hi, I could not find much explanation about setting and using global variables. Let’s say I want to place dynamic text with system time etc. How do I create (or import ) particular variable?
I think there should be a column in the user manual dedicated to this topic.
-p-


#2

Hi! Yes, this topic will be extended in help. I can explain briefly

There are 3 kind of variables to use: built-in, system, user-defined

  1. Built-in variables:
  1. $date - current date in format yyyy/MM/dd
  2. $time - current time in format HH24:mm:ss.fff
  3. $fps - current fps value
  1. System - these ones are defined in in “Global Variables” section. It is created automatically:
  1. $global.cpuUsage - cpu usage in %
  2. $global.freeDiskSpace - free disk space in Mb
  3. $global.timeCounter
  1. User-defined
    User can define variables which are updated through local files or remote REST service. In case of JSON, it will expand object to flat structure, e.g. variable name is “myVariable” and json is {name:“aaa”, value: 2.0} - you will be able to use
    $global.myVariable.name=aaa
    $global.myVariable.value=2.0