Hello,
I am planning a measurement system and search some ideas for programming how to realize it.
I have an older NI PCI-6024E and want to measure 8 voltage signals with 2 kHz. When task is started it should run some hours without task stop.
Every 2000th sample (= every second), I want to store this sample (all 8 voltages) into a continuous file with printf.
For this I do not need the sampling rate of 2 kHz, 1 Hz would be enough but I want to do more:
Every time when voltage_1 increases over 1.1 V, I want to store all data – and 100 samples before– with 2 kHz into an other file till voltage_1 decreases under 0.9 V – and 100 samples after–. It will be like a self programmed pre- and post trigger with continious running measurement task.
I think I can work with an fifo-buffer (double fifo[10000 samples][8 channels]) but do not know how to do this on a smart way ;-)
Do you have any ideas how to mange it?
chemph