RobotStudio event

difference between real world and virtual...

Options
Hello,
I did a simple application but the result seems different using virtual robot and real one. The program should update a label (visible or not) and a button (enabled or not) related to the state of "MotorON". Using virtual robot it works; instead using a real robot the label and button are not updated changing MotorON state.

Why is there this difference between virtual robot and reality?

How could we be sure that testing a program using virtual robot it will work without any problem in reality?

Thank you

GB

Comments

  • Hello,

    If it is a FlexPendant application you are working on, there is a BIG difference between working with the virtual FP on a PC and working with the real FlexPendant, which is a device with very limited memory resources, for example, compared to a PC.

     

    It is therfore necessary to do considerable testing on the real device and not rely only on the virtual environment. For PC SDK applications, the virtual environment is not very different from the real environment, but it is still not the same as the real environment.

     

    So the answer is that you can never be sure the application will work without any problems, unless you have tested it in the real world.  As for a FP application you need to set up a long-term test to guarantee you do not unintentionally drain the FlexPendant device of all its memory. These situations are not so good to discover when the application is already being used in production...

     

    Another very important thing to remember is that there is only ONE GUI-thread on the FlexPendant, that all FP applications share. If one application breaks the GUI-thread it will affect all of the applications on the FlexPendant. This means the FlexPendant will crash and must be restarted if an exception occurs when the end-user presses a button in your application and there is no try - catch to handle it. 

     

    Now, to the situation you refer to: search for Invoke in User's Guide. (It is necessary to use it to enfore the execution to the Gui thread when you get an event from the controller and want to update the GUI.)

     

     

     

     
    Ingela2008-11-27 08:43:36
    Best regards,

    Ingela Brorsson
    Software Engineer
    ABB Robotics, Sweden
  • Klaus
    Options
    Hello.
     

    I have found 2 different things from the VC and the real.

     

    1. If you use numpad on VC decimal seperater must bee "," on the VC but the real controller use "." (char 44 & 46).

    2. If you works with text files there is a dirrent in the way the real controller handles <Null> in end of the string then the VC.

     

    On PC interface you must change "," with "." before writing in Num dimensions in your rapid program.

     

    Just some of mine experience

     

    Br Klaus
    Best Regards

    Klaus Soenderhegn
    www.cadalysator.dk