Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Highest sampling rate possible for a PID on CRIO

Hi, All,

 

I am trying to build a PID based on the CRIO. I need the sampling rate of the PID to be larger than 50kHz. In other words, one loop of the PID control should be less than 20 microseconds. Does anyone know whether this is possible?

 

Thanks very much!

0 Kudos
Message 1 of 5
(5,167 Views)

What modules are you using to read and write your values?  What cRIO chassis are you using?

 

You should be able to do this.  I suspect you will need to do the PID in the FPGA, but your can try to do the PID calculations in the RT.  So sample that fast, you will need to write your own FPGA (the scan engine is too slow).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(5,166 Views)

Hi, crossrulz,

 

Thanks for your quick reply. I am planning to purchase the cRIO. I am just wondering whether the best controller available can reach this sampling rate. If not, I will find other solutions.

 

I need to indepedently control the currents in 8 coils, with at least 16 bits resolution. So I guess I will use modules such as NI 9227 to read current value and NI 9265 to output current value.

 

Thanks,

 

Wenqi

0 Kudos
Message 3 of 5
(5,162 Views)

I would go with the 9068 chassis.  It is by far NI's best chassis and uses their Linux RT.  Otherwise, I'm not seeing any major issues.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(5,154 Views)

Good to see that the 9227 has anti-aliasing filters built in. The bandwidth of these should be as appropriate by default - but worth a quick check in the manual.

 

 

Consultant Control Engineer
www-isc-ltd.com
0 Kudos
Message 5 of 5
(5,130 Views)