NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
rharkes
Posts: 4
0 Kudos
Accepted Solution

TTL pulse to trigger four alternating lines

[ Edited ]

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.

 

Trusted Enthusiast
John_P1
Posts: 2,032
0 Kudos

Re: TTL pulse to trigger four alternating lines

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
Member
rharkes
Posts: 4
0 Kudos

Re: TTL pulse to trigger four alternating lines

Thank you for the fast support. 

Member
rharkes
Posts: 4
0 Kudos

Re: TTL pulse to trigger four alternating lines

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

Active Participant
Hossein128
Posts: 341
0 Kudos

Re: TTL pulse to trigger four alternating lines

Hello,

 

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

 

Regards,

Member
rharkes
Posts: 4
0 Kudos

Re: TTL pulse to trigger four alternating lines

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.

Member
Yiming
Posts: 1
0 Kudos

Re: TTL pulse to trigger four alternating lines

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!

Active Participant
Hossein128
Posts: 341
0 Kudos

Re: TTL pulse to trigger four alternating lines

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

 

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page