Persisting variables across program nodes

I’m new to URCap dev and am confused as to how one shares info across program nodes within a program. Say I wanted to define a grid using waypoints, and for this grid to be accessible to all my program nodes, would I put this in the installation node view and contribution? I’ve been told that installation nodes also persist information across programs, but I want to be able to define different grids for each program.

Much appreciated.

Hello @mat.elwarth

as you mentioned - one way could be to store the required information inside the installation node and access it from the individual program nodes.

In case you need this information during runtime of the program you need to create the correspondent UR Script variables through the installation node and the scriptwriter method.

Hi @sko

Thanks for your help. And will this cause information to be shared across programs, too? I want all variables and stored info to be unique for each program.

Hello @mat.elwarth

No, with each new installation a fresh correspondent data model is being created. You will not share information between programs.

Hi @sko

Sweet. One last thing: Is it possible to define waypoints from the installation node? I’d like to be able to, after receiving some information, define a small number of waypoints that can be shared across program nodes.

You can only contribute waypoints through a URCap parent node in the program. But the correspondent pose and angle information can be taken from different sources - so yes, if you have the information stored in the data model of the Installation node, it can be accessed from the correspondent program node.