why it does not update my flexpendant?
Dear colleagues, I'm a friend of carmila and have simillar problems with flexpendant .. shouldn't this work ?
sig = (DigitalSignal) controller.IOSystem.GetSignal("test1");
sig.Changed += new SignalChangedEventHandler(delegate(object obj,SignalChangedEventArgs args){
textBox1.Text = sig.Get().ToString();
});
it works on virtual flexpendant .. but why doesn't it work in the real fp.. ? can anyone please give us hint ? ..
Comments
-
Hi,
I have not tried myself, but even though this is semantically correct, the event handler will be called in a thread that is NOT the UI thread, so you cannot change any property that will cause a change in the UI.
1. Can you put a MessageBox.Show method just to make sure that it is called?
2. You will pass the call from the thread the event is called to the UI thread by doing an Invoke
Saludos/Carlos
Carlos Martinez
ABB0 -
hi .. you did it again .. it works .. thanks for your advice .. mui bien ..
thanks ..
0
Categories
- All Categories
- 5.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings