07-25-2017 03:45 PM
I have a cRIO-9068 and in my program there is a while loop with case structures that will determine if a channel is on or off. I want to be able to control different sampling rates for the multiple channels that are open and reading data. If I have multiple channels on and reading data can I control different sampling rates simultaneously or does the wait until next multiple function control it for all the channels?
Solved! Go to Solution.
07-25-2017 09:07 PM
Are you using the FPGA? If so, then the loop rate of the FPGA determines the sample rate. If not, then you are using the Scan Engine. The sample rate is determined by the Scan Engine rate, which is configurable in the project. The Scan Engine does not do well with a rate under 10ms; you may get away with 1ms.
07-26-2017 07:45 AM
Oh ok. I'm doing scan engine currently. So the only way for the sample rate to be different than other sensors is to have another cRIO chassis at a different scan engine rate?
07-26-2017 08:42 AM
@NickBl wrote:
Oh ok. I'm doing scan engine currently. So the only way for the sample rate to be different than other sensors is to have another cRIO chassis at a different scan engine rate?
If you want to continue to use the Scan Engine for the sampling, that is correct. You could also use hybrid mode with the cRIO where some modules are controlled by the FPGA and others use the Scan Engine or just do it all with the FPGA. But then you will have to program the FPGA to do what you want.
07-26-2017 08:46 AM
Ok thank you.
07-26-2017 10:23 AM
Do you know the maximum sampling rate of the FPGA mode if I decide to do a hybrid mode?
07-26-2017 11:15 AM
@NickBl wrote:
Do you know the maximum sampling rate of the FPGA mode if I decide to do a hybrid mode?
That would depend on your module. Read the manuals carefully as there are often specific sample rates the modules can sample at.