From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
I am writing a VI that is writing a sine wave to the DAQ, reading the DAQ, and Writing the data to a file. I am using a PCI-MIO-16E DAQ card. My problem is that the timing is off. the written data is not showing a true sine wave. it's is streched intially and then compresses. I would like a to improve the timing between my two loops. Any Ideas.
You might also look in the NI Example Finder (from LabVIEW: Help >> Find Examples) for an example on syncronizing AO and AI to the same clock source. That might help.
I didn't look at your code in too much detail, but the loops should be able to run at different rates. The Queue transmission should buffer the data transfer and account for lags on the receiver side.