Signals
spaik
✭✭
Hi there, Anyone can send signal processing example? simple, complex, reading and writting whatever....
thanks in advance!!
Best & Kind Regards,
spaik
spaik
0
Comments
-
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 signalIf setTrue Then
DS.Set()
Else
DS.Reset()
End If
End IfCatch ex As Exception
'do something with the exception here
Finally
If Not ios Is Nothing Then
ios.Dispose()
ios = Nothing
End If
End TryRussD38511,6208333333Russell Drown0
Categories
- All Categories
- 5.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 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