RobotStudio event

SyncData gets error

I am trying to use the following command to syncronize a work object from a macro to the VC:


station.ActiveTask.SyncData("Module1/workObjBattery", SyncDirection.ToController, new System.Collections.Generic.List<SyncLogMessage>());

However, I always get this error:

The given key was not present in the dictionary.

Apparently the name Module1/workObjBattery is correct. What could have gone wrong here?

 

Thanks,

Sam

chen2008-7-3 21:1:33

Comments

  • Hi
    Looks like this only works if you create a real addin and not thru VSTA.

    Per Svensson
    Robotics and Vision Specialist
    Consat Engineering