I'm trying to sample data at 200 Hz during some few seconds, see below. When I'm not in need of the data, the loop goes at 2 Hz.
The hardware is a cRIO-9074. Problem is that the CPU goes at 100% during sampling. I have tried storing to file instead of these
FIFO Shared Variables, but with the same results. The Scan Engines Scan Period is set to 5 ms.
When I'm not logging, CPU is at about 25%. See attachment for source code.
Anybody got good suggestions about trimming the system, or other ways to dealing with the problem ?
Martin