This is my first post at the forum and maybe someone can help me.
I am switching some output-pins on a cDAQ based system with USB connection to my PC
Just switching on 1 output take about 35 ms but compared to the speed of the USB-interface this seems to be very long. I am using a cDAQ system which has a USB 2.0 interface which has a transfer-rate of 480 Mbps.
Can somebody explain why this should take so long and if there are possibilities to improve this?
I have attached my test-program.
Try adding a Start Task outside of your loop. Auto-starting the task is going to take a while. For what it's worth, this code gives me an "elapsed time" of between 0 and 1 running on simulated hardware.
Thank you for your quick response. I tried your suggestions but without luck.
Still I have a delay of about 30 ms. Running on simulated hardware also gives me an "elapsed time" of about 0 or 1.
Running the program on a Digital output-port on cDAQ hardware I got a delay of about 30 ms.
With regards to the USB 2.0 speed this is a lot of "overhead time".
Any idea how this can be improved?
Look in the Find Examples >>> Hardware IO >>> DAQmx >>> DO
For a "continuous" example.
Not all hardware can do that so it may be a limit of your hardware.