Hi All,
I'm hoping this is going to be a no-brainer, but what I am trying to do is write an application in C# (MSVC 2010) using the bq80xRW OCX control that will control 4 EV2300s from a single application. I've written a function in C# that will successfully open a single EV2300, but seems to stumble when trying to open more than one...
The code is:
public bool connect(int index = 0 ) { int gotten = 0; string boardNames = ""; if (connected) return true; myBoard.GetAllBoards(4, ref gotten, ref boardNames); if( gotten < index + 1 ) { return false; } string[] boardList = boardNames.Split(','); string board = boardList[index]; int error = myBoard.OpenDevice(ref board); if( error != 0 ) { return false; } connected = true; return true; }
So, what happens is:
The call to GetAllBoards seems to only return the available boards -- ie, on the first call it lists 4 boards, on the second it lists 3 boards. It seems to do the same thing that a call to GetFreeBoards does.
The call to OpenDevice returns 0 (success) on the first call, but -1 (fail) on the second call.
Anyone have any thoughts?
Does anyone have a decent SDK reference for the OCX control?
Thanks much,
Brian LeLacheur