Rhd2000DataBlock RunSingleCommandSequence() { // Start SPI interface. evalBoard.Run(); // Wait for the 60-sample run to complete. while (evalBoard.IsRunning()) { Thread.Sleep(0); } // Read the resulting single data block from the USB interface. var dataBlock = new Rhd2000DataBlock(evalBoard.GetNumEnabledDataStreams(), evalBoard.IsUsb3()); evalBoard.ReadDataBlock(dataBlock); return(dataBlock); }