Need help about the performance of RTW/RTAI/Comedi
wicky.zhang at gmail.com
Sat Jan 7 04:13:14 CET 2006
Appologize for disturbing you again.
After trying many times and referring many documents, I can do nothing about how to improve the performance of my simplest test demo (output path = a sine wave generator--->gain--->Comedi data write, while input path = Comedi data read--->sfun_rtai_scope). The demo is based on Matlab/RTW7.1(windows version)+RTAI3.2+Comedi0.7.70. I tried NI6024E and PCI9118dg of ADLINK both, the following is my test result:
1: For 1 channel A/D, the sample rate can be set up to 30KHz. But when raised to 50KHz or higher, once using remote RTAI-LAB to connect the target system, the computer will not response the connection, even not response to either mouse or keyboard. The only thing i can do is to push the reset button.
2: For 6 channels A/D, the sample rate can be set up to 5KHz only. when raise it, the same thing happens.
I have been suggested to check the cmd->flags|=TRIG_WAKE_EOS, which would cause interrupt every scan, but i don't know how to set or clear it in the auto-generated code, even after reading many of the corresponding documents, including rtai, comedi and Matlab/RTW.
I am wondering that whether the performance can be raised with the auto-generated code? or should there be some tricks to improve it? I hope my system can reach 10KHz sample rate with 6 channels A/D at least, can anyone give me some hints? thank you!
BTW: I found that the messages can't be added to the mailing list once I attach a file, why? hope you all can see this one!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rtai