ich versuche verzweifelt meine neue RK10-USB Relaiskarte (enthält den IOW24) in PureBasic anzusteuern.
Code: Select all
Import "iowkit.lib"
IowKitOpenDevice() As "_IowKitOpenDevice@0"
IowKitCloseDevice(devHandle.i) As "_IowKitCloseDevice@4"
IowKitGetNumDevs() As "_IowKitGetNumDevs@4"
IowKitGetDeviceHandle(devHandle.i) As "_IowKitGetDeviceHandle@4"
IowKitRead(devHandle.i, numPipe.l, buffer.l, length.l) As "_IowKitRead@16"
IowKitWrite(devHandle.i, numPipe.l, buffer.l, length.l) As "_IowKitWrite@16"
IowKitGetProductId(ioHandle) As "_IowKitGetProductId@4"
IowKitGetRevision(ioHandle) As "_IowKitGetRevision@4"
IowKitGetSerialNumber(ioHandle, Serial.s) As "_IowKitGetSerialNumber@8"
IowKitReadImmediate(ioHandle,buffer.s) As "_IowKitReadImmediate@8"
EndImport
IowKitOpenDevice()
ioHandle = IowKitGetDeviceHandle(1)
numPipe = 0
length = 3
buffer.s = "11111111"
IowKitWrite(ioHandle, numPipe,@buffer.s,length)
IowKitCloseDevice(iohandle)
Wie muss diese variable aussehen ?
gruß, Edi
(ja ich bin Anfänger :-) )