Hi,
I have trouble using the Multichannel lock-in DAQmx. I would like to measure two signals and the reference with USB 6009 and the LabVIEW DAQmx lock-in. I know that it is not simaltenous sampling board but since I do not need the phase, it should be fine. The problem is that I have two signals sometimes swap with each other. It happens in the first run of the while loop when the lock-in VIs are initialized. It correlates with appearing of extra samples available after the DAQmx Read.vi. If the swap between the channels happens it persists in the while loop but the timing gets twice as big. I guess that there might be some samples stuck in the buffer but I do not know how to reset it. I tried to run task stop and then task run VIs but it did not help. Reducing the sampling speed and increasing the buffer size did not help either.
My setup is following. The mechanical chopper running at 25 Hz modulates the IR radiation and it is detected by two detectors. One is used as a calibration, the other for the measurement. I need both signals. I sample between 5000 and 14000 S/s in order to take care of the aliasing. The reference signal from the chopper is connected to the first pair of differential analog input, the two signals to the next two pairs of the differential inputs.
Please advise on how to reset the buffer (resetting the board does not help too).
nia2