Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronized Multiple clocks on RTSI

Hi,

 

I need to generate 4 synchronized clocks, namely :

 

- pixel_clk, pulsed

- line_clk, pulsed

- frame_clk, pulsed

- gate_clk, toggle with a high level corresponding in a multiple of pixel_clk

 

I have 2 PCI cards(6115, 6713) with 2 counters on each card. The cards are already linked and configured for using RTSI bus.

 

The idea is to generate:

- a pixel_clk counter at the frequency f1 from the onboard clock and then send it on RTSI0

- a line_clk counter at the frequency f2 from the RTSI0 clock and then send it on RTSI1

- a frame_clk counter at the frequency f3 from the RTSI0 clockand then send it on RTSI2

- a gate_clk counter at the frequency f4 from the RTSI0 clock and then send it on RTSI3

 

I will need clues and tips to do that. I am always facing errors... Anyone has any idea?

 

Thank you,

 

Lionel

0 Kudos
Message 1 of 5
(6,183 Views)

Hi Lionel,

 

Attached you will find a little VI (compiled for 2009) where I used a PXI System to simply test what you said.

You should be able to use this VI when reserving the trigger lines of your RTSI cable in MAX and changing all the physical channels to your setup.

 

It seems that you trying to build clock signals for a camera. Keep in mind that both of your cards are just able to output a maximum of 5MHz, whereas the most cameras needs higher frequencies, as far as I know.

 

Also a better approach would be to use a HighSpeed DIO or FPGA Card or if it's applicable a Framegrabber.

 

 

Christian

 

0 Kudos
Message 2 of 5
(6,134 Views)

Hi Christian,

 

Thank you for your interest and for the vi.

The vi works fine if we use only one RTSI line. As soon as we add RTSI lines, we get errors.(see attached .png)

It seems that there are conflicts between the RTSI lines.

 

Do you have an idea how to solve this?

 

Best regards,

 

Lionel

Download All
0 Kudos
Message 3 of 5
(6,119 Views)

Hi Lionel,

 

The error comes up since you changed all the CO Terminals to another RTSI Line.

This is not possible since CTR 1 needs CTR 0 as a subsystem for the routing, but CTR 0 is allready in use!

 

I am wondering about why you want to route all the Counter Outputs to a certain RTSI Line because where do you want to go from there?

 

 

Thanks,

Christian

0 Kudos
Message 4 of 5
(6,110 Views)

Dear Christian,

 

We reached the same conclusion yesterday also after searching and searching. This concept of RTSI is completely new form us. Now that we know, it is a problem of resources and not of coding, we are currently working on the 2 options:

 

1) Trying to do what we want with only 2 clocks 

2) Buying a additional card (6601) to build the 4 synchronized clocks on RTSI

 

To answer a bit your question, we are currently developing a custom-made 2 photons microscope in the lab. We need to control the laser scanning phase of the sample as well as the acquisition of light emitted from it. As we have 2 cards to do this and to control other devices/modules, we plan to use the RSTI bus to synchronize and trigger the different phases. 

 

Thank your kind help and for you interest.

 

Lionel 

0 Kudos
Message 5 of 5
(6,089 Views)