Originally Posted by
EluZioN
Iamthehor and Sonic,
I just received my FB and had been watching this thread. The problem with the "cyclic" values stems from the number of bytes you are pulling. Sonic's example has this: Dim _AllAnalogues(64) As Byte (I assumed your Dim is the same). When I use that and your sub it will eventually show the value for pin 15 as pin 14, 13, 12, 11, etc. In between it will show other crazy amounts. My guess is the dll doesn't clear the buffer (or the device doesn't) and requesting an odd number of bytes upsets it?
Change the Dim to: Dim _AllAnalogues(63) As Byte and the issue goes away. Theoretically you should probably have Dim _AllAnalogues(127) As Byte which will pull all pins from all brains (16 x 4 x 2 bytes each input)
I look forward to tinkering with this more. I see there is a digital input value type, not sure if it's actually hooked up or not. First try at reading it I get NULL. I did find out that you MUST call find all brains (or perhaps just get brain count) or else the dll doesn't work.
Regards,
EluZioN