RobotStudio event

PC SDK problems with FileSystem.PutFile

Hi!

I have a PC SDK application communicating some data through files with a FP SDK application. This is normally working just fine except for some time delays. But once in a while my PC SDK application will stop at the Controller.FileSystem.PutFile command, and it will never move on. I find it strange that I don't get any exceptions or any help with the problem, the application just hangs there.

Does anyone know anything that could help me here? Is there anything I can't do at the same time PutFile copying the file?

/Micael

Comments

  • Some additional info. I believe that my problems occur if my PC SDK application is writing the file (putFile) and then the FP SDK app is trying to check if the file exists during the actual writing. And thats were the PC SDK app get stuck and can't finish writing the file.

    Right now it feels like I need to crete an event from my PC SDK app to my FP SDK app without obtaining mastership (file writing is partly to avoid obtaining mastership). But I don't see any obvious way of doing this. Could maybe use RMQ but there would be a lot of code to add just to create the event (setting a rapid variable).