Does anyone know, or have experience with, reading values directly from a CSV file on a USB drive?
For example, reading data like:
80,0.2,0.1
130,0.5,0.1
170,1.0,0.1
So im able to use the data with UrScript?
URScript does not have functionality of reading CSV, it needs to extend a daemon to achieve, below sample shows an approach of reading CSV to store value, almost match… perhaps it offers some inspiration for your use case.
Hello,
Personally, I think that to achieve this, I would develop a small URCap that reads the .csv file directly from the robot, or I could read the data from the .csv file from a Windows application (for example, in C#) and then send it to the robot via TCP/IP.
I think that, to get more answers, you should provide a little more information about the objective of this task, and especially about the expected result.
Thanks for the answers, I’ll look into it.
My goal is to be able to read Z-coordinates, speed, and acceleration from a CSV file on a USB stick. The values will only be used in a small part of the program. The CSV file will contain a large number of program numbers, followed by the corresponding values that should be used for each specific program. I would prefer to avoid having a computer running to send the data, otherwise, I would have considered that option as well.
Thank you very much.
I made a successful build with Maven, so now I have a working URCap from your example, and it works perfectly. I am now able to make modifications to fit my needs.
Would you be able to point me in the direction of a tutorial or document where I can read about creating a URCap ? Just a simple basic thing so I can understand how it is done ?
I used this video to learn the basics. Unfortunately there is no part 2.
https://www.youtube.com/watch?v=ncZJQKL4Fxo
Then after some time when you have installed everyting, then in my ubunto terminal with this path, and with the example funing.hu came with i was able to make the following UrCap.
~/sdk-1.18.0/samples/swing/com.krmi.urcap.sample.varLogging-master$
I used this command “sudo mvn install” no make the .urcap, you then i transferet it from a USB to the UR
I hope this helps
Hello !
Here is what I followed as a tutorial for my first steps in URCap: Universal Robots - URCap - My First URCap
