04-29-2021 12:57 PM
Hi!
In this code, I am looking to generate continuous pulse signals soon as Start Task is run in the While Loop. However, although there are no errors thrown when the code is run, there is no signal output on the oscilloscope. Interestingly, the problem disappears if I move the Start Task outside of the flat sequence.
It is not obvious to me why the problem occurs; perhaps someone else has a keener eye than I do.
Solved! Go to Solution.
04-29-2021 01:29 PM
The task needs to be started before the trigger pulse is sent. It would be like setting up your oscilloscope to trigger on a signal, but not enable the capture until after the pulse was sent, at which point you are just sitting there looking for the trigger signal.
04-30-2021 12:11 PM
Thanks Knight. I guess you are right. Interestingly, I am now faced with a different flavor of the same challenge.
As seen in screenshot 1, signal generation begins with Start Task outside of the while loop. In the while loop, Stop Task halts signal generation. This state executes for 38 iterations of the while loop. No errors thrown in LabView, plus clean signal generation is validated on the oscilloscope.
At iteration 39 and 40 (screenshot 2), Start Task should resume signal generation, but LabView throws an error saying that the task cannot be changed while in operation.
Do you think it is because of the triggering (similar to my initial challenge)? 'Cause the setup works fine when I run it without depending on the trigger (screenshot 3).