Hello there,
I'm quite new to robot programing and specially to fanuc robots and I'm implementing an application where I need a server to run on the controller to get and update constantly the information coming from a python client. The info will then be used to give movement instructions to the robot.
The python client gets the data from an USB device and process it and then sends an array of 8 variables (either -1/0/1 for each) by socket messaging to the controller. I've been through the Karel server example that's on the Karel Reference Manual but truth is I don't really understand what's going on there, mainly with the "Open/Close File" instructions and the two for cycles. In my case, I want to constantly (no need for huge frequency but I don't want lag neither) get the values of the 8 variables so I can with them instruct the robot to move to certain positions. Thing is, I don't know if I should open a file and then constantly cycle through the same file with multiple read statements or if I should open/close a file everytime I want to update that data.
I thank you in advance for any help given!