Hi, I've just bought a PCI-6221 (68 pin) card. I am trying to do a motor controller with this card.
I produce a PWM output with the one counter. The PID controller has 1 input wich is an analog reading.
The whole controle loop is include in a timed-loop function.
I try (and need) to run loop at a frequency of 1 kHz, but a receive some error message saying that
my program (build in labview) is'nt able to follow the hardware clock. I try to reduce speed to 500 Hz. The program works
for a while (~30 s) then same error happen. Reducing to 200 Hz (wich is way to slow for my application), the error still happens
after a minute or so.
It looks likes their is an overflow somewhere.. or something like that. Is anyone has succed in doing a 1 kHz controller with 1
analog input and 1 counter output? Anyone could share a program that works well a this loop speed?
My computer is a 2.4 GHz with 500 Mb of RAM. When running my application, the cpu works at 30%.
Thanks!
Marc-Antoine