Hannes Mayer wrote: > Pavel Pirkl wrote: >> Hello, >> I tried example for real time parallel port from www.captain.at. >> I tried to generate maximum frequency of square waveform only about >> 10kHz. >> But for great value of frequency a I got error in rt_wait_period. >> Where is problem? > > Which example ? > Which error ?
Pavel, if you are referring to this example http://www.captain.at/xenomai-parallel-port-interrupt.php it might be wise to raise the thread priorities of the generator and the IRQ handler above the printer. Also, this test was not designed to run at high frequencies. It pushes some value into a pipe for each occurred IRQ and requires main to read from it at the same rate. This will quickly cause overflows of the pipe when going to 10 KHz or higher. Jan
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
