Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger of PCI 6013

I am working on a project which has a PCI6013 board and two other devices (device A and device B). When device A starts working, it sends out a TTL digital pulse with a maximum width of 20 us. Device B is supposed to start working after device A starts working. Device B can be triggered to start working using a pulse with a minimum width of 1 ms. My idea is that: using the digital pulse from device A to triger the PCI6013 board first; after PCI6013 is triggered, generate a pulse (with a width of 1 ms) from counter 0 of PCI6013 and send the pulse to device B.
 
But I have no idea about how to trigger the PCI6013 board using the digital pulse from device A. Any sugguestions are highly appreciated.
 
Cindy
0 Kudos
Message 1 of 3
(3,006 Views)

Hi Cindy,

I was wondering what driver you were using with the PCI-6013. If you are using DAQmx, there is a good example which shows how to use a counter output task to generate a pulse with a specified pulse width when it receives a digital trigger. If you are using LabVIEW, the DAQmx examples can be found in the Example Finder which can be accessed through the Help menu. This example can then be found browsing by task under Hardware Input and Output » DAQmx » Generating Digital Pulses » Gen Dig Pulse-Dig Start.vi. Let me know if this helps.

Regards,
Kent
Applications Engineer

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

Hello Cindy,

 

You can definitely do this with your PCI-6013.  What you'll want to do is configure a counter output pulse generation task with an external start trigger.  Then you'll route your signal from device A into a PFI line on the PCI-6013 to be the start trigger of your task.  Then the task will start and you can generate a longer pulse to send to device B.  Here's how to find a LabVIEW example of how to do this:

 

1.  Open LabVIEW and go to Help>> Find Examples...

2.  Navigate to Hardware Input and Output>> DAQmx>> Generating Digital Pulses>> Gen Dig Pulse-Dig Start.vi

 

Depending on the exact requirements of your system you'll want to use a different example.  For instance if you need to be able to trigger device B more than once you'll need to make your pulse train retriggerable (see example Gen Dig Pulse-Retriggerable.vi).  You can read through the descriptions available in the Example Finder and more than likely find exactly what you want.  If not its likely you can modify one or more of the examples fairly easily.


I hope this helps and have a great day!

 

Cheers,

Brooks
0 Kudos
Message 3 of 3
(2,984 Views)