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.6K RobotStudio
- 398 UpFeed
- 20 Tutorials
- 14 RobotApps
- 300 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 336 IRC5
- 67 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 828 RAPID Programming
- 12 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings