Hello
I need to program that I push on a bottun and 2 digital outputs become 1.
How do I do this?
Greets
Hello
I need to program that I push on a bottun and 2 digital outputs become 1.
How do I do this?
Greets
The following will do the job in Visual Basic 2008:
Private Sub Form1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
Select Case e.KeyCode
Case Keys.A
SetDigitalChannel(CardAddress, 1)
SetDigitalChannel(CardAddress, 3)
Case Keys.B
ClearDigitalChannel(CardAddress, 1)
ClearDigitalChannel(CardAddress, 3)
End Select
End Sub
When button “A” is pressed, the digital channels 1 and 3 are set on.
When button “B” is pressed, the digital channels 1 and 3 are set off.