LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interfacing with CCD TCD1103, timing problem

Solved!
Go to solution

Hello, I am trying to interface a CCD sensor (TCD1103) through the FPGA of LabVIEW and a NI9401 DIO module and a level converter. Currently, I look at the output on an oscilloscope but when I get a correct output I will try to read it out using the NI9201 Analog Input module.

 

I found the timing on the TCD1103 difficult to implement on the output sequence to communicate with the CCD. There are 3 lines that have timing requirements the SH, ICG, and Mclk. I coded the different lines in the FPGA but I have not yet found a way to synchronize the data lines. In my current codes, the pulses start to drift apart. 

 

I added an overview of my code and the timing chart.

 

Download All
0 Kudos
Message 1 of 3
(2,756 Views)
Solution
Accepted by topic author RHooijsch

Take a look at the "Digital I/O Applications" section of this white paper for an example that is pretty close to what you are trying to accomplish: https://www.ni.com/en/shop/data-acquisition/advanced-data-acquisition-techniques-with-ni-r-series.ht....

 

Also, you should be using the Loop Timer function rather than Wait to control your, make sure you understand the difference.

https://www.ni.com/docs/en-US/bundle/lvfpga-api-ref/page/vi-lib/express/rvi/timing/nirvilooptimer-vi...

https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/express/rvi/timing/nirviwait-vi.htm...

 

0 Kudos
Message 2 of 3
(2,714 Views)

Thank you, this helped out a lot!

0 Kudos
Message 3 of 3
(2,699 Views)