10-13-2025 06:12 PM
I am using a USB-6351 to control a piece of external scientific equipment. What I need from this device is the ability to generate two pulses. The first will be a consistent pulse triggered by an external TTL pulse (Counter 1 in the image attached). This should be retriggerable, but only sending a single pulse per input trigger. I have this portion functional at this time. The second counter needs to trigger from the first counter and have its own high time (low time is the same). What needs to change is the initial delay on this second counter. My software should sweep through the initial delay from a starting value to an ending value with a specific (user supplied) step. Ideally, I would like a for loop that allows multiple pulses at each delay before moving to the next delay. What I have tried so far is to start the second counter, wait for it to complete, stop it, and then use a property node to change the initial delay. This worked, but missed about 1/2 of the triggering pulses, no matter the external timing (approximately 2 Hz when I'm pulsing at around 50 Hz when triggered; 0.2 ms pulse outputs). The code shown below is a snippet that is incomplete. This functions to produce a second, retriggerable pulse with the correct initial delay. I need help getting it to change with each pulse. Thank you in advance!
10-13-2025 07:52 PM
We can't debug an image. Please upload your code instead, preferably in LabVIEW 2019 as most community users don't have access to the latest LabVIEW version.
10-14-2025 11:59 AM - edited 10-14-2025 12:00 PM
My Apologies; I've seen images uploaded previously and thought that was sufficient. Attached is the snippet of code that is not functioning as expected. Thank you!