Fausto, the screen capture is from a Windows 7 machine. As suggested, I also tried a faster Windows 10 machine but the same delay occurs.
Out target system performs handshaking as follows:
a) A single 1.5 us pulse is sent to the target system by the computer.
b) The target system responds within 50 us seconds of receipt of the pulse and send the computer back a 1.5 us pulse.
c) After that the computer sends data of various number of words, and each word is responded to by the target system with a 1.5 us pulse.
Communications between the computer and target system have to be rather fast and occurs continuously. The specifications of USB-DIO32HS should have stated that there will be a large delay between consecutive outputs. It just seems abnormal. When using cbDOut(), there is no delay but we cannot adjust the rates.
As of now I have no faith in the recommended product "Digital Discovery: Portable USB Logic Analyzer and Digital Pattern Generator" as I am not sure it will not behave the same way. We bought three of the USB-DIO32HS expecting them to get us moving in the right direction but this unexpected issue just threw us a huge hurdle to overcome.
Is there a way to elevate this issue to your design / programming team to have them investigate the reason of why the cbDOutScan() function does not return back to the calling program once all output is processed. Per documentation of the help file it should return, but instead just delays for such a long time.
In addition it seems like cbStopBackground() function does not perform as documented since because it will not also not terminate once the output is processed (essentially not useful).
These seem like major flaws in the firmware of the USB-DIO32HS, and if not then the product documentation should state that consecutive outputs (writes) are 100 ms apart and cannot be performed any quicker and the program is locked up for that duration.
Please let me know if this is something you can elevate to your design / programming members and provide further feedback to us. Your help is appreciated and thanks for taking a look at it.
Paresh