# UI Thread and change event

**URL:** <https://tech-community.robotics.abb.com/t/ui-thread-and-change-event/370>\
**Category:** Developer Tools\
**Created:** [May 20, 2005, 3:54pm UTC](https://tech-community.robotics.abb.com/t/ui-thread-and-change-event/370 "2005-05-20T15:54:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_B](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@John\_B](https://tech-community.robotics.abb.com/u/John_B)\
**Post date:** [May 20, 2005, 3:54pm UTC](https://tech-community.robotics.abb.com/t/ui-thread-and-change-event/370/1 "2005-05-20T15:54:56Z")

</div>

I am trying to simply update on pendant screen the status of a number of digital IO. I have a working solution but the update time on change is in the region \>6 secs! This clearly is not workable in real terms. I have invoked the event delegation as recom’d in the sdk docs to sync the threads but even so, i still have very slow updates! Can anyone help / shed some light please…

void ITpsViewActivation.Deactivate()  
{  
this.do1Sig.Changed -=new SignalChangedEventHandler (do1Sig\_Changed);  
}

void ITpsViewActivation.Activate()  
{  
this.do1Sig.Changed +=new SignalChangedEventHandler (do1Sig\_Changed);  
}

#endregion

private void do1Sig\_Changed(object sender, SignalChangedEventArgs e)  
{  
this.Invoke (new EventHandler(this.ChangedDO1UserInterface),sender, e);  
}  
private void ChangedDO1UserInterface(object sender, System.EventArgs e)  
{  
SignalChangedEventArgs args = (SignalChangedEventArgs) e;  
SignalState sigState = args.NewSignalState;  
Single val = sigState.Value; // or some suitable means of display here  
this.textBox1.Text = val.ToString(); // ----------------||------------------  
}

---

<div class="post-metadata">

**Author:** ![ReneK](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/renek/32/3229_2.png) [@ReneK](https://tech-community.robotics.abb.com/u/ReneK)\
**Post date:** [May 23, 2005, 2:26pm UTC](https://tech-community.robotics.abb.com/t/ui-thread-and-change-event/370/2 "2005-05-23T14:26:23Z")

</div>

Hello,

this “lag” is due to the SDK Domain; the events are delayed. As far as I know, there will be a change in 5.06 to increase the performance of the SDK Domain.

best regards

Ren?

---

<div class="post-metadata">

**Author:** ![John\_B](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@John\_B](https://tech-community.robotics.abb.com/u/John_B)\
**Post date:** [May 24, 2005, 6:00pm UTC](https://tech-community.robotics.abb.com/t/ui-thread-and-change-event/370/3 "2005-05-24T18:00:03Z")

</div>

Thanks Rene… lets look forward to 5.06 (And no lag!)

Regards
