Home› Programming
Discussion
Back to discussions page
RamonSanchez
Posts: 14 Apprentice
Write a .txt file with variables with a UR10 |
108 views
|
Answered | |
/ Most recent by RamonSanchez
in Programming
|
2 comments |

Hello,
Would it be possible to have a UR10 write a .txt file?
I'll put an example:
Robot Program
stop_timer ≟ True
Loop 120 times
stop_timer ≟ False
Waypoint1
Waypoint 2
Waypoint 3
Would it be possible to have a UR10 write a .txt file?
I'll put an example:
Robot Program
stop_timer ≟ True
Loop 120 times
stop_timer ≟ False
Waypoint1
Waypoint 2
Waypoint 3
lap_nr≔lap_nr+1
sum_lap_s≔sum_lap_s+timer
sum_lap_s≔sum_lap_s+timer
avg_lap≔sum_lap_s/lap_nr
last_lap≔timer
timer≔0
Thread 1
Thread 1
Loop stop_timer≟ False
timer≔timer+0.008
sync()
I would like to have a .txt after every loop of 120 laps indicating the result of the variables (what interests me the most is the average time of all laps).
Thanks,
Ramón
I would like to have a .txt after every loop of 120 laps indicating the result of the variables (what interests me the most is the average time of all laps).
Thanks,
Ramón
Tagged:
Best Answer
-
David_Gariepy Beta Tester Beetle, Wrist Camera URCap 1.3.0, Vacuum Beta tester Posts: 189 Handy
Hi @RamonSanchez
Would a cvs file be ok for you?
We have an application package that allows saving any variable to a csv file on a computer.
Check here for details, you can download the application package and you'll find a pdf explaining how to use it.
David Gariépy
Integration Coach
Comments
-
RamonSanchez Posts: 14 Apprentice
Hello David. That's exactly what I was going for! Thank you very much.0 · TwitterFacebook