# Signals

**URL:** <https://tech-community.robotics.abb.com/t/signals/389>\
**Category:** Developer Tools\
**Created:** [June 8, 2005, 7:37am UTC](https://tech-community.robotics.abb.com/t/signals/389 "2005-06-08T07:37:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spaik](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@spaik](https://tech-community.robotics.abb.com/u/spaik)\
**Post date:** [June 8, 2005, 7:37am UTC](https://tech-community.robotics.abb.com/t/signals/389/1 "2005-06-08T07:37:49Z")

</div>

Hi there, Anyone can send signal processing example? simple, complex, reading and writting whatever…

thanks in advance!!

---

<div class="post-metadata">

**Author:** ![RussD](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@RussD](https://tech-community.robotics.abb.com/u/RussD)\
**Post date:** [June 8, 2005, 2:52pm UTC](https://tech-community.robotics.abb.com/t/signals/389/2 "2005-06-08T14:52:50Z")

</div>

Here is part of a subroutine for working with digital IO

* * *

Dim ios As Signal

Try

> 'signalname is a parameter passed into this sub, ctrl is a
> 
> 'reference to a controller object created elsewhere
> 
> ios = ctrl.IOSystem.GetSignal(signalName)
> 
> If ios Is Nothing Then
> 
> > Throw New Exception("IO Access Error reading signal " & signalName)
> 
> Else
> 
> > Dim DS As DigitalSignal = CType(ios, DigitalSignal)
> > 
> > 'setTrue is a parameter that is passed into this sub to
> > 
> > 'determine if we are setting or resetting this signal
> > 
> > If setTrue Then
> > 
> > > DS.Set()
> > 
> > Else
> > 
> > > DS.Reset()
> > 
> > End If
> 
> End If

Catch ex As Exception

> 'do something with the exception here

Finally

> If Not ios Is Nothing Then
> 
> > ios.Dispose()
> > 
> > ios = Nothing
> 
> End If

End Try
