Noch nicht vollständig. Nicht alle Funktionen implementiert.
Download bei Velleman: Softwarepack K8061
Download bei Velleman: K8061 driver update v4.0.0.0
'K8061.bi für FreeBASIC
Dim Shared As Any Ptr K8061
K8061 = DylibLoad("K8061")
Dim Shared OpenDevice As Function () As Integer
Dim Shared CloseDevices As Sub ()
Dim Shared CloseDevice As Sub (ByVal CardAddress As Integer)
Dim Shared ReadAnalogChannel As Function (ByVal CardAddress As Integer, ByVal Channel As Integer) As Integer
Dim Shared PowerGood As Function (ByVal CardAddress As Integer) As Integer
Dim Shared Connected As Function (ByVal CardAddress As Integer) As Integer
Dim Shared ReadVersion As Sub (ByVal CardAddress As Integer, ByVal Buffer As Any Ptr)
Dim Shared ReadAllAnalog As Sub (ByVal CardAddress As Integer, Buffer As Any Ptr)
Dim Shared OutputAnalogChannel As Sub (ByVal CardAddress As Integer, ByVal Channel As Integer, ByVal Data As Integer)
Dim Shared OutputAllAnalog As Sub (ByVal CardAddress As Integer, Buffer As Integer)
Dim Shared ClearAnalogChannel As Sub (ByVal CardAddress As Integer, ByVal Channel As Integer)
Dim Shared SetAllAnalog As Sub (ByVal CardAddress As Integer)
Dim Shared ClearAllAnalog As Sub (ByVal CardAddress As Integer)
Dim Shared SetAnalogChannel As Sub (ByVal CardAddress As Integer, ByVal Channel As Integer)
Dim Shared OutputAllDigital As Sub (ByVal CardAddress As Integer, ByVal Data As Integer)
Dim Shared ClearDigitalChannel As Sub (ByVal CardAddress As Integer, ByVal Channel As Integer)
Dim Shared ClearAllDigital As Sub (ByVal CardAddress As Integer)
Dim Shared SetDigitalChannel As Sub (ByVal CardAddress As Integer, ByVal Channel As Integer)
Dim Shared SetAllDigital As Sub (ByVal CardAddress As Integer)
Dim Shared ReadDigitalChannel As Function (ByVal CardAddress As Integer, ByVal Channel As Integer) As Integer
Dim Shared ReadAllDigital As Function (ByVal CardAddress As Integer) As Integer
Dim Shared OutputPWM As Sub (ByVal CardAddress As Integer, ByVal Data As Integer)
Dim Shared ReadBackDigitalOut As Function (ByVal CardAddress As Integer) As Integer
Dim Shared ReadBackAnalogOut As Sub (ByVal CardAddress As Integer, Buffer As Integer)
Dim Shared ReadBackPWMOut As Function (ByVal CardAddress As Integer) As Integer
If K8061>0 Then
OpenDevice = DyLibSymbol(K8061, "OpenDevice")
CloseDevices = DyLibSymbol(K8061, "CloseDevices")
CloseDevice = DyLibSymbol(K8061, "CloseDevice")
ReadAnalogChannel = DyLibSymbol(K8061, "ReadAnalogChannel")
PowerGood = DyLibSymbol(K8061, "PowerGood")
Connected = DyLibSymbol(K8061, "Connected")
ReadVersion = DyLibSymbol(K8061, "ReadVersion")
ReadAllAnalog = DyLibSymbol(K8061, "ReadAllAnalog")
OutputAnalogChannel = DyLibSymbol(K8061, "OutputAnalogChannel")
OutputAllAnalog = DyLibSymbol(K8061, "OutputAllAnalog")
ClearAnalogChannel = DyLibSymbol(K8061, "ClearAnalogChannel")
SetAllAnalog = DyLibSymbol(K8061, "SetAllAnalog")
ClearAllAnalog = DyLibSymbol(K8061, "ClearAllAnalog")
SetAnalogChannel = DyLibSymbol(K8061, "SetAnalogChannel")
OutputAllDigital = DyLibSymbol(K8061, "OutputAllDigital")
ClearDigitalChannel = DyLibSymbol(K8061, "ClearDigitalChannel")
ClearAllDigital = DyLibSymbol(K8061, "ClearAllDigital")
SetDigitalChannel = DyLibSymbol(K8061, "SetDigitalChannel")
SetAllDigital = DyLibSymbol(K8061, "SetAllDigital")
ReadDigitalChannel = DyLibSymbol(K8061, "ReadDigitalChannel")
ReadAllDigital = DyLibSymbol(K8061, "ReadAllDigital")
OutputPWM = DyLibSymbol(K8061, "OutputPWM")
ReadBackDigitalOut = DyLibSymbol(K8061, "ReadBackDigitalOut")
ReadBackAnalogOut = DyLibSymbol(K8061, "ReadBackAnalogOut")
ReadBackPWMOut = DyLibSymbol(K8061, "ReadBackPWMOut")
EndIf
'Am Programmende:
'If K8061 Then DylibFree K8061 |