# why it does not update my flexpendant?

**URL:** <https://tech-community.robotics.abb.com/t/why-it-does-not-update-my-flexpendant/2061>\
**Category:** Developer Tools\
**Created:** [August 6, 2008, 4:21am UTC](https://tech-community.robotics.abb.com/t/why-it-does-not-update-my-flexpendant/2061 "2008-08-06T04:21:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/system/32/6_2.png) [@system](https://tech-community.robotics.abb.com/u/system)\
**Post date:** [August 6, 2008, 4:21am UTC](https://tech-community.robotics.abb.com/t/why-it-does-not-update-my-flexpendant/2061/1 "2008-08-06T04:21:04Z")

</div>

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 ? ..

---

<div class="post-metadata">

**Author:** ![carlosmtz2000](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@carlosmtz2000](https://tech-community.robotics.abb.com/u/carlosmtz2000)\
**Post date:** [August 6, 2008, 3:45pm UTC](https://tech-community.robotics.abb.com/t/why-it-does-not-update-my-flexpendant/2061/2 "2008-08-06T15:45:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/system/32/6_2.png) [@system](https://tech-community.robotics.abb.com/u/system)\
**Post date:** [August 12, 2008, 6:23am UTC](https://tech-community.robotics.abb.com/t/why-it-does-not-update-my-flexpendant/2061/3 "2008-08-12T06:23:19Z")

</div>

hi .. you did it again .. it works .. thanks for your advice .. mui bien ..

thanks ..
