Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Timing glitch when logging analog input on USB 6002

I am trying to log an analog input at 2 kS/s while outputting waveforms to 2 analog outputs. I've tried many methods but right now I'm running the logging and the waveform generation on different threads as I was unable to get accurate logging on the same thread. However, I am still getting timing glitches when I feed a 20 Hz sine wave from the wave generator on my oscilloscope. I am creating the program using python. Has anyone experienced this before or have any insight?

 

timing glitch.PNG

code1.PNG

99476e48-f0cd-419e-b41f-fe0a87d36ebd.png

0 Kudos
Message 1 of 3
(566 Views)

Please attach actual code, nobody can run or edit the code with pictures.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 3
(540 Views)

My bad, heres the code.

0 Kudos
Message 3 of 3
(498 Views)