LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating pulse from external trigger using a USB-6343

Solved!
Go to solution

Hello everyone,

 

I'd like to use an external signal ( trig out of a nanosecond laser ) as a starting trig to generate a 5V square signal using a USB-6343. So far I can generate 1 signal using the code joined, but I'm missing something on how to generate 1 Pulse for every single trig from the laser.

I even tryed to put the start and stop task inside the while loop, but the run time of the loop being slowest than the frequency of the laser, I'm missing some pulse..

 

If anyone have informations or tips, I'll be very grateful.

Thanks!

 

0 Kudos
Message 1 of 4
(529 Views)

Have you tried using the Voltage - Continuous Input that comes with NI DAQmx...

 

Id suggest using Digital Start tab and then select as Source the pin where you connect External Source

 

LFBaute_0-1711632926423.png

 

CLA, CTA
0 Kudos
Message 2 of 4
(522 Views)
Solution
Accepted by n.fagnon

You only need to add a DAQmx Trigger property node where you can configure your task to be "Retriggerable".   You probably should also wire your "low time" value to the "initial delay" terminal when you create your task.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 3 of 4
(517 Views)

Thanks a lot, as simple as the property node sound, it does exactly what I was missing.

 

0 Kudos
Message 4 of 4
(496 Views)