Dear all,
in my Labview 2012 application pulse train sequences with varying duty cycles are produced by two counter outputs that run synchronously (by help of a NI 9401 module on a cDAQ-9178 chassis).
The synchronization is done using a dummy digital input line that triggers the two counters. The duty cycle sequences of both counters have the same length at a time, but their DC values differ.
At some events, the duty cycle sequences have to change. If this is the case, it should happen right after the currently running sequence has completed, without interruption.
I tried to boil down the problem in the example below. Here, both counter outputs receive the same dc sequence, and it is changed manually by front panel input. The four switches in the lower left corner of the front panel have been added for trial and error.
If 'Stop Task' and 'Control Task (unreserve)' are active, it runs without an error, but the pulse train is interrupted in between and there's a gap before the new one starts (see picture).
If 'Stop Task' and 'Control Task (unreserve)' are deactivated, it may either
- produce an error, or
- produce a warning only, changing to a new sequence without interruption. But it only gives the correct physical output if the sequence length did not change, otherwise it generates a mix of the old and the new values.
So the question is: how can I seamlessly change from one counter output sequence to the next?
Any help is appreciated! Please excuse if I was inaccurate with some technical terms, this is my first post...
Thanks in advance, kind regards
Antoe