From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

how to stop a period counter in a while loop without using abort execution?

I am using a NI x series 6343 andcounting pulses, but when i try to stop the counter with a boolean operator nothing happens, ihave to go and use abort execution, 

 

Help

0 Kudos
Message 1 of 5
(4,708 Views)

You'll have to post a screenshot of your code.

 

If you're using a read call with an infinite timeout this would explain your problem (see here for other options).

 

 

Best Regards,

John Passiak
0 Kudos
Message 2 of 5
(4,669 Views)

that is a picture of the code i hope it helps

0 Kudos
Message 3 of 5
(4,643 Views)

If the value of the timeout is -1 that would explain your problem (the DAQ Assistant will block indefinitely so the loop will never exit).

 

 

Best Regards,

John Passiak
0 Kudos
Message 4 of 5
(4,612 Views)

While it will not help with the stop issue in question, the stop button should be wired to the stop input of the DAQ Assistant and the stopped output to the loop terminal. This will allow the DAQ devices to be shut down properly.

 

Lynn

0 Kudos
Message 5 of 5
(4,594 Views)