Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

TTL pulse to trigger four alternating lines

Solved!
Go to solution

Hello All,

 

I'm using a NI PCI-6030E with Labview 2011, and want to build a controller for my AOTF, but I'm stuck on the programming and beginning to wonder if it is possible with my hardware. Hopefully there is someone here who can help me.

 

This is my setup:

A camera records frames at framerates between 10 and 100 Hz and exposure times between 100ms and 1 ms. These values are set before every experiment. The camera gives a high TTL signal wenever it is exposing the chip. This is the input signal.

An AOTF controles the transmission of laserlines that must expose the sample whenever the camer chip is exposed. This AOTF has four inputs for different laserlines it can control. Whenever a line is high the corrosponding laser is transmitted.

 

This is my goal:

I would like to build a labview program that let's the AOTF alternate between laserlines sychronized with the camera. For example 1x line 1, 4x line 2, 1x line 3, 4x line 4, and repeat. Is this possible with the PCI-6030E ?

 

In the attachment I put an example of an input and output signal.

 

0 Kudos
Message 1 of 10
(4,674 Views)
Solution
Accepted by topic author rharkes

Hi rharkes,

 

Unfortunately, the 6030E does not support the necessary features to get what you need.

 

What I would suggest is to switch hardware to something that supports change detection and buffered digital output (eg. PCI-6220, PCIe-6320).  You could then configure a change detection task which will generate a clock on both the rising and falling edges of your signal.  Using this clock, you could then generate a digital waveform that would produce the signals you need on lines 1 through 4.

 

 

Best Regards,

John Passiak
0 Kudos
Message 2 of 10
(4,665 Views)

Thank you for the fast support. 

0 Kudos
Message 3 of 10
(4,649 Views)

Hi,

 

I now have a PCI-6220 and I am trying to program the controller. Using this example:
http://zone.ni.com/devzone/cda/epd/p/id/317  I can detect changes created by the camera on port0/line0 (pin52/53) .

If I understood your post correctly should create a clock from that, and then program a buffered digital output to sychronize with that clock?

 

Are there maybe also examples for that?

 

Best Regards,

Rolf Harkes

0 Kudos
Message 4 of 10
(4,586 Views)

Hello,

 

I think you are doing good. I found an example which I hope will help you.

 

Regards,

0 Kudos
Message 5 of 10
(4,576 Views)

Problem solved. Turned out only port0 has buffered digital output and change detection, so I created a digital input on line0 with change detection. Then made a digital output on port 0 with a sampleclock that has "ChangeDetectionEvent" as source.

0 Kudos
Message 6 of 10
(4,551 Views)

Hi,

 

   I have a similar problem trying using TTL signal to control different lasers through AOTF. I want to alternatively switch from different lasers. The problem for me is that I want to output anolog signals so that I can control the intensity of different lasers. I try to use the counter to select different channels. However, it seems that the there is some deleay of my program. Will some one helps me improve my code? Thanks!

0 Kudos
Message 7 of 10
(4,452 Views)

Hi,

 

Maybe you can use the link below. Otherwise don't hesitate to ask any question.

 

http://digital.ni.com/public.nsf/allkb/4F5347018DBA372B862575210051EF1D?OpenDocument 

 

Regards,

Hossein

 

0 Kudos
Message 8 of 10
(4,424 Views)

Hi,

  I have a similar problem trying using TTL signal to control different lasers through AOTF. I want to alternatively switch from different lasers. The problem for me is that I want to output anolog signals so that I can control the intensity of different lasers. I try to use the counter to select different channels. However, it seems that the there is some deleay of my program. Will some one helps me improve example of Programm? Thanks!

0 Kudos
Message 9 of 10
(4,074 Views)

You should probably start a new thread as your quesiton seems to be a bit different than what has been previously discussed here (not to mention this thread already has a solution marked and so it's likely that many people will skip over it when browsing the forums).

 

In your new thread, it would be good to specify which hardware you are using and maybe give a code example.  

 

 

Since I'm already posting here... I should mention that using a "counter to select different [AO] channels" isn't a feature of any NI DAQ device, though you could make a pre-built waveform and use a counter to clock it out which might be what you meant (but at that point why not just use the AO sample clock directly). If the waveform is not pre-determined and you need user input to set the voltage and channel, then there will inevitably be some delay as the data makes its way through the various software and hardware buffers involved.

 

 

Best Regards,

John Passiak
0 Kudos
Message 10 of 10
(4,063 Views)