Hi there, Anyone can send signal processing example? simple, complex, reading and writting whatever…
thanks in advance!!
Hi there, Anyone can send signal processing example? simple, complex, reading and writting whatever…
thanks in advance!!
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