Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

trigger external devices using TTL from PCIe-6259

Hi,

 

I have four lasers and I need to trigger any one of them on each iteration of a counter - the laser is selected randomly each time via a random number. I want to send a TTL pulse to the selected laser from the PCIe-6259 card, and I understand it has three DIO ports with 32 lines each. I want to set up 4 digital output channels, but I am not sure how it is done. Can this be done? I am using NIDAQmx ansi C.

 

Thank you for the help!

0 Kudos
Message 1 of 2
(4,487 Views)

You have a few different options depending on the desired response time from your incoming counter to when you send the TTL signal.

 

I would take a look at the examples in the Counter and the Digital folder here (assuming you have the DAQmx driver installed):

 

C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\

CTA, CLA, MTFBWY
0 Kudos
Message 2 of 2
(4,437 Views)