11-03-2023 04:26 AM
I have a NI USB X-Series DAQ (USB-6341) which I have used in the past for simple generation of pulse trains with LabVIEW 2021.
For my application I need to detect a input rising edge (typ. PW 0.5uS) e.g. via Dig In line (I have had this box running with a 10MHz internal clock before so am guessing that it would be 'ok' with the 0.5uS pulse detection part, but with up to 1/f @100ns variability).
On the edge detect event I need to invoke a defined HW timed delay (typically a number of uSecs, I assume this would be via a DAQ counter), then output a defined digital pulse on a Dig Out line (0.5uS or longer).
The DAQmx example vi 'Digital - Finite Output.vi' (with Digital Start Trigger Setting selected) can trigger on a rising edge on a given Dig In pin and output a pulse on a Dig Out pin,
(and I assume if I set up another counter I can delay when that Dig Out pulse occurs with the resolution governed by the counter clock speed).
But the example vi only allows this task to occur once, looping around in LV2021 and restarting the task is not an option as the use case needs to detect each incoming pulse, and the incoming pulses can come at a range of time spacings, the fastest being every 10uS (slowest every 10mS) and I need the system to detect every time.
Is there a way this can be done with the 6341 HW? I can't help thinking I am just being a bit thick. Any pointers gratefully received.
Solved! Go to Solution.
11-03-2023 05:49 AM
It was me being thick. Found that Start Trigger has a Retriggerable property that can be set.