Nano or microseconds current time using IoT Data Gateway
Options
Hi,
I using the MQTT publisher with the IoT Data Gateway option, and I need to associate a timestamp to each message. I am currently using {{Now}}, but there might be discrepancies between the controller time and the gateway time, which is more visible when using RobotStudio (simulation), since sometimes the simulation speed might not be real-time, particularly for computationally heavy simulations.
I'd rather use the controller time ({{DateTime}} or {{UtcDateTime}}, however these are only second-based, the microseconds (or nanoseconds) part is always 0, which is a far too low resolution for what I need.
Any advice on how could I get the controller time with higher resolution?
Thanks and best regards,
Hugo Costelha
I using the MQTT publisher with the IoT Data Gateway option, and I need to associate a timestamp to each message. I am currently using {{Now}}, but there might be discrepancies between the controller time and the gateway time, which is more visible when using RobotStudio (simulation), since sometimes the simulation speed might not be real-time, particularly for computationally heavy simulations.
I'd rather use the controller time ({{DateTime}} or {{UtcDateTime}}, however these are only second-based, the microseconds (or nanoseconds) part is always 0, which is a far too low resolution for what I need.
Any advice on how could I get the controller time with higher resolution?
Thanks and best regards,
Hugo Costelha
Tagged:
0
Categories
- All Categories
- 5.4K RobotStudio
- 384 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 736 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings