Hi. I'm running two machines in a master-slave configuration. Since it is not possible to propagate variables through subsequences on the slave machine when it is remotely controlled, I am looking for a reliable method to transfer big containers from slave to master and then from master to slave again. Passing a container as object reference occasionally causes errors, so I suppose there is a more solid way to do it. Here the details:
The container is set as a parameter in the slave PreUUTLoop sequence:
Parameters.UB7_CFG = RunState.ThisContext.FileGlobals.UB7_CFG.GetPropertyObject(““,0)
The master sequence has UB7_CFG set as Local variable and its type is Object Reference.
UB7_CFG is then transferred back to the slave MainSequence by reference and saved in UB7_CFG_startTesting container:
RunState.ThisContext.FileGlobals.UB7_CFG_startTesting.SetPropertyObject(““,0,Parameters.UB7_CFG)
Calling this will sometimes but not systematically cause the following error:
Error in call to TestStand API member PropertyObject.SetPropertyObject.
The item named UB7_CFG cannot be added to the object because it already has a parent object. You must first clone the item or remove it from its parent.
In the case this is actually the proper way to transfer containers, I wonder why i get the error shown.
Thanks for your support.