Get Variable values in Toolbar

This is not as simple. I’m also trying to find the best way to view and edit a variable from a toolbar. These are the possibilities I know to get the current value of a URScript variabile in a URCap:

  • Read it from Primary Interface - You have to write a “reader” for the packages sent by the controller, maybe based on this sample which is for Realtime: getRobotData
  • Send it from URScript through a socket to a java server (see ScriptCommunicator or this older one ScriptCommunicator)
  • Send it from URScript through XML-RPC (see mydaemonswing sample or Dialog Script URCap)

I think maybe the second method is the simplest one.