Realtime socket communication between program node and daemon

Hi,

we have an http based daemon service running. When the program is running, we want to inform the daemon service over http protocol whenever a cycle is completed or duration of idle time. Basically, I am storing the cycle counter or idle time duration in URScript variables.

public void generateScript(ScriptWriter writer) {
	writer.writeChildren();
	Variable variable = getSelectedVariable();
	if (variable != null) {
		String resolvedVariableName = writer.getResolvedVariableName(variable);
		writer.appendLine(resolvedVariableName + "=" + resolvedVariableName + "+1");
    }}

Can I access the URScript variables using Realtime client or RTDE interfaces from daemon service?

What is the best way to do?

Thanks,
Sankar
Founder of Daacoworks