Nano or microseconds current time using IoT Data Gateway
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.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings