Queries the current identifier of the data monitor values.
Syntax |
uint32 monitor_values_id() |
---|---|
Result |
Return data identifier |
Notes |
No assumptions can be made about particular meanings or sequences of the identifier (could be incremental, random, etc.) |
Example of use:
bool execute(pan3d::object @panel) { int last_id = 0; set_scene_auto_update(false); while (!should_end()) { /* Check if values are changed */ uint id = monitor_values_id(); if (id == last_id) { sleep_ms(100); continue; } last_id = id;
/* Update scene items ... */ ...
/* Update scene */ update_scene(); } } |