LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PID control 26 KHz

I am trying to achieve the 26kHz PID loop with a PCI-7041 RT card. But, just reading from the card (AI Config.vi+AI Start.vi+WHILE LOOP[AI S-Scan.vi] +AI Clear.vi) takes about 0.3 milliseconds per iteration(one reading). Setting the scan rate higher than 8000/s gives an overflow error message. AI Mult Pt.vi is fast, but I need to read the data point by point to be able to process it fast. I couldn't find a helpful example. Thank's !
0 Kudos
Message 1 of 3
(2,761 Views)
Have you tried One Channel PID Control.vi, under \examples\Real-Time\RT Control.llb?
0 Kudos
Message 2 of 3
(2,761 Views)
No, but now I did. I wasn't allocating memory. Thank you !
0 Kudos
Message 3 of 3
(2,761 Views)