I am using the .NET Wrapper provided with the Frontpanel API.
I would like to setup the device as a data monitor for a custom system. I plan to connect the system to the FPGA and stream the data to the computer.
what happens when a function blocks such as ReadFromBlockPipe(…) in one thread, but in another an attempt to talk to the board is initiated such as UpdateWireIns(…) or UpdateWireOuts(…).
Does this asynchronous capability doesn’t exists or perhaps I’m not doing soemthing right? Below is an example of my code.
Is there a way to specify a timeout or even cancel a blocked call to the API?
_frontPanel = new okCFrontPanel();
// Code to open the device and such here. no issues here
Thread pipeThread = new Thread(_pipeThreadFunc);
Thread wireThread = new Thread(_wireThreadFunc);
_ep20wire = _frontPanel.GetWireOutValue(0x20);
List bufferCollection = new List(1000);
byte] tmp = new byte;
int count = _frontPanel.ReadFromBlockPipeOut(0xA0, 1024, 1024, tmp);