Here is fine for now. You can also use the beta test thread or create a new thread and post a link anywhere.
Originally Posted by rEegLer
Do you have all the versions of .NET? By Microsoft's infinite wisdom, .NET4 is not an "update" to previous versions, it is separate ontop. So you need to separately install .NET2.0, .NET3.0, .NET3.5, and .NET4.0. Once I make an installer it will do so automatically. Try that first.
Also, what hardware (specifically video card) do you have?
If you can capture the error, and if there is a "view details" option, then those details too, that would be great. First I would make sure you have all the .NET's though.
It does not need to be in any specific directory, it can be run anywhere. I am going back to my old methodology from way back when. Single EXE with as few accompanying DLLs as possible so you can just drag the folder around where you want.
You are free to do write-then-read operations, it will work just fine. It just won't (as you said) "harness the power" of the V6 and potentially eat up USB bandwidth.
Originally Posted by Sonicxtacy02
FindMyDevice has been depreciated for a looooooooooong time now. I went back in my code, and I don't even have it give a "depreciated warning" message anymore, I just commented it completely out of compilation. So no you can't. That method does not even exist anymore.
All you have to do is call this static method:
It will enumerate everything (V3, V4, and V6) and store it internally. It is automatically called when devices are plugged in and disconnected as well. So you can *optionally* subscribe to that event, or not and just poll like the old times.
Once you do that call, you can find out how many FBs (all versions) are connected by doing this:
0 means none, and N means N connected.
int how_many_are_connected = MainUSBClass.allFusionBrains.Count;
To turn on a single Digital output like port 8 (so to replace the first write portion of your code) the byte array looks like:
And then to actually send it to the first FB (allFusionBrains), it looks like:
int _code = 0x03;
int _length = 1;
int port = 8;
byte _toSendArray = new byte[1 + (_length * 2)];
_toSendArray = (byte)((_code << 5) + _length);
_toSendArray = (byte) ((port) << 3);
_toSendArray = 0xFF;
That's all. Super simple.