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
PeterTrollens
Posts: 14
0 Kudos

How to send a TTL Trigger at the begining of an acquisition

Hi,

I have a hard time to find from the Knowledbe Base a simple solution for the following task:

 

I want a function generator to _receive_ TTL Trigger at  the start of an analog acquisition using a PCI-6259 with Labview 8.

 

What is the easiest way to raise the Trigger at the beginn of an aquisition.

 

Any advice is highly appreciated!

Peter

 

 

 

Active Participant
Brooks_C
Posts: 357
0 Kudos

Re: How to send a TTL Trigger at the beginning of an acquisition

Hello Peter,

 

I'm not sure exactly which of the following situations you're asking about, but both have fairly straight forward answers.

 

If you want to use a TTL trigger to start an analog acquisition then you can just configure your analog input task to use a digital start trigger.  You can route this trigger into the PCI-6259 via a PFI line.  As soon as you call the DAQmx Start Task VI the task will wait for a rising edge on that line.  For an example of how to do this go to the LabVIEW Example Finder (Open LabVIEW and go to Help» Find Examples...)  Then navigate to Hardware Input and Output» DAQmx» Analog Measurements» Voltage» Acq&Graph Voltage-Int Clk-Dig Start.vi.  This example configures the trigger acquisition I described above.

 

Option two is that you want to start an analog acquisition and at the same time output a digital signal on a PFI line to send from the PCI-6259 to your function generator.  If this is the case, there is an internally generated digital edge whenever you start your task.  You can use the DAQmx Export Signal VI to route the DevX/ai/starttrigger to a PFI line of your choice.  This will generate a rising edge whenever you start the analog input task.

 

I hope this helps and have a great day!

Brooks
Member
PeterTrollens
Posts: 14
0 Kudos

Re: How to send a TTL Trigger at the begining of an acquisition

Hi Brooks,

 

the second option was what I meant. Sorry that it was not clear.

Thank you very much!

Peter

 

Member
sahani
Posts: 18
0 Kudos

Re: How to send a TTL Trigger at the begining of an acquisition

Hi 

 

I am using a TTL digital input to give a digital output and it works properly. NI USB 6009

 

But now I would like to change it so when I get a TTL  high on the digital input line , I would like to drive the Analog output which would give me a +5 V at the ouput, I have tried to change my program, but I am not able to do so, I have attached the VI, If any one Can help. 

 

Digital Input --> Delay Timer --> Analog Output.

 

Thanks

Veer

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