I'm trying to make a data acquisition and logging application for a PXI-8133 with PXI-4300 analog voltage input module, using shared variable single process with RT-FIFO enabled, but I'm having some issues with that.
I'm using a determinist loop for data aquisition and other while loop for logging. But, my log file is losing data, sometimes part of the signal is lost, sometimes the buffer is larger than the amount of data and saves a sequence of zeros. I'm having difficulty adjusting the values for the fifo buffer.
Here are some questions:
1- Should I use single element or multi-element at FIFO type? I believe a multi-element allows me to have a buffer, right?
2.1- Points per waveform in RF-FIFO settings should be exactly equal to the size of the waveform read in each execution of the timed loop or can it be larger?
2.2- The number points in the waveform read in the timed loop keeps oscillating, depending on the sampling rate. Is it normal?
4- Should the logging loop run faster than the timed loop or at the same rate?