When trying to run a secondary program from urscript (programmed in URCaps), the message allways pops out: “Compile error: An expression was found which produces a result that is not used in the program”. The faulty line is the line where the secondary program is defined [ sec mySecProg(): ]. If I replace the “sec” keyword by “def” and run it as a main program, the code compiles and runs. The secondary program is defined within the main script (the program node generateScript function with its writer).
Can secondary programs run in this way at all or do they HAVE to be sent and run over sockets? Is my program defined in the good place? How should I go about running the secondary program from within my URCap node?