01-21-2025 10:18 AM
I’m currently using the USB-6001 with four sensors connected to it. I’m also utilizing the Write to Measurement File VI. The DAQ is running at 50 Hz for each channel, and so is the data acquisition. However, after about 10 minutes of recording, if I apply weight to a sensor, it takes around 5 seconds for the change to appear on the graph. Additionally, the graph occasionally stutters and rubber bands. I’ve used similar code at much higher data rates on other projects without encountering this issue, so I’m puzzled as to why it’s happening now. Is there an easy fix for this?
01-21-2025 10:33 AM
You need to lose all the Express VIs and their dreaded DDT wires.
Then use a proper programming architecture for high speed data acquisition like the Producer/Consumer.
01-21-2025 04:32 PM
Look in the example folder for DAQmx, you will find numerous examples there that will run at your desired rate. Use the built in TDMS logging feature then post process the file to make a text file. (This is also in the example VIs.) If you have Excel, there is free plugin from NI that will open the TDMS file in Excel.