Yes the FB_USB_2011.dll is doing the work.
Originally Posted by Sonicxtacy02
And the new USB protocol allows for bidirectional on the fly too. You can send only the digital output commands you want when you want, or never. And you can read the analogue inputs anytime you want, and whenever.
Note that you can read as many analoglue inputs past values as you want by using a larger buffer like 1024 instead of 64.
byte _toSendArray = new byte;
_toSendArray = 0x21;
_toSendArray = (byte)(port_i++ << 3);
_toSendArray = 0x01;
byte _allDigitalOutputReadStates = new byte;
byte _allAnalogues = new byte;
MainUSBClass.allFusionBrains.ReadDataFromFusionBrain(ref _allDigitalOutputReadStates, 0x01);
MainUSBClass.allFusionBrains.ReadDataFromFusionBrain(ref _allAnalogues, 0x02);
The reading and writing can be done asynchronously, but not at the same time. So you cannot interrupt a read to do a write.
---------- Post added at 11:41 AM ---------- Previous post was at 11:30 AM ----------
Also the *.cs file is being called from within a button. It shows that a GUI object can "own" it's own little code segment that does ANYTHING. In this case the GUI object is listening into an event that the Digital Output port raises everytime a new signal is received.
I believe this to be a much more free way of styling. Seriously, any object in the program can be passed into these little extra code files and manipulated. All settings and images are all derived from a single dynamic class and can be accessed by anything. I am a little stunned that I was able to pull it off.
So Sonic (and anyone else who has tried the *.zip), what sort of CPU usage did you get on what hardware? And did the button correctly turn on/off the LED?