Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW FPGA Timing Issue.

Hello, 

 

I am using a USB-7845R to create a step function that when my FPGA receives a "high" pulse from Connector1/DIO6 it steps up by some value "Sync Step Size" and when a "high" pulse from Connector1/DIO7 is received it resets the value to the initial value of 0. 

When measuring on my oscilloscope I notice that the timing is off where I see pulses from Connector1/DIO6 but it is not stepping up in sync with the pulse. Is there something off about the timing structure that I am using. For reference the pulses from the camera attached to DIO6 occur every 10 us and the pulses from DIO7 occur 10 us * # vertical rows of my field of view. 

Thank you in advance for suggestions!

Download All
0 Kudos
Message 1 of 2
(53 Views)

Your AO node slows down the entire speed of the while loop, capping the loop at 1us since the AO has a maximum update rate of 1MS/s.

I would recommend you move the AO node out to a separate while loop. Then change the while loop with the digital I/O to a timed loop to make use of the 40MHz clock.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 2
(15 Views)