Please enable JavaScript to view this site.

Adds a new generic variable.

Syntax

bool add_var(uint32 type, const string &in name, const string &in link='')

type

Type of variable (see table of variable types)

name

Variable name

link

Link of variable (optional)

Result

Returns true if variable added, false otherwise

Notes

Variable name must be unique.

The new variables will be operational, if valid, only after a restart of the data monitor, such as with a call to the restart_monitor() method.

Example of use:

bool execute(pan3d::object @panel)

{

  ...

  panel.add_var(pan3d::var_bool"flag1"); /* Unlinked in memory variable */

  panel.add_var(pan3d::var_double"rr100""SYS:RR(100)"); /* Variable in memory linked to real register 100 */

  ...

  restart_monitor();

}

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC