03-28-2024 08:21 AM
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!
Solved! Go to Solution.
03-28-2024 08:35 AM
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
03-28-2024 08:51 AM
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
03-28-2024 09:33 AM
Thanks a lot, as simple as the property node sound, it does exactly what I was missing.