From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

ND_SWITCH_CYCLE properties

When I use ND_SWITCH_CYCLE will the timer wait until it has completly finished count1 and count2 before loading the new values, or, for example, if it is on count1 and I call switch cycle will it load count2 immediately.

Also, 2VIEAM6I makes it look like switch_cycle can only be used once, because it says the new values are loaded in C and D. Can this be repeated multiple times?
Thanks.
0 Kudos
Message 1 of 2
(2,953 Views)
SWITCH_CYCLE will wait until both count1 and count2 have completed before switching to the new counts. Also, switch cycle can be used multiple times, but only after the previous call to switch cycle has taken effect. That is, the new count1 and count2 must start generating before you can write another set of values to switch to. If you make the call to SWITCH_CYCLE too early, you will receive an error indicating this scenario.

I hope this helps!
gus....
0 Kudos
Message 2 of 2
(2,953 Views)