Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Continuous Counter Output doesn't close

Solved!
Go to solution

I'm not sure if the issue I'm seeing is hardware or software. The intention of the piece of the program pictured below is to continuously pulse as a piezo stage moves to various programmed positions, then at the last position stop firing. Right now, it continues to fire after this is run, even when the program is completely stopped. Is there something I've done wrong with the DAQ task, or does this look correct? It's possible this is a hardware thing that's being observed, not software, as the set-up this is used in is rather complicated. 

aaaaaaaaaaaa.png

0 Kudos
Message 1 of 3
(1,486 Views)

If this code runs to completion, the pulse train task should indeed be stopped and cleared, thus no longer generating pulses.   To that extent, the DAQmx stuff looks right.

 

Other things about the code are written at "pre-expert" level though, and experience here has shown that to correlate at times with mis-diagnosis of symptoms and behavior.

 

So, in detail:

- are you *certain* everything shown in this code runs to completion?   How do you know?

- are you *certain* the pulses continue to generate?  Are you looking at signals on a scope?  Or are you reaching that conclusion some other way, and if so, why?

- could this code be called again after the first time it runs to completion?   Or is there some other part of the code that can generate similar pulses?

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy coming to an end (finally!). Permanent license pricing remains WIP. Tread carefully.
Message 2 of 3
(1,436 Views)
Solution
Accepted by topic author Ryan117

Hi Kevin,

 

The code runs to completion and does in fact stop generating pulses! It turned out to be a hardware issue. The pulse detection method was the opening of a shutter to allow a laser pulse through, and it turns out the shutter wasn't actually plugged in. Always check that everything is plugged in first! Thank you for your troubleshooting help

0 Kudos
Message 3 of 3
(1,428 Views)