LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Start Task not generating signal

Solved!
Go to solution

ooyeniyi_0-1619718262390.png

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.

0 Kudos
Message 1 of 3
(1,232 Views)
Solution
Accepted by topic author ooyeniyi

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(1,226 Views)

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.

 

ooyeniyi_0-1619802244011.png

 

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. 

ooyeniyi_1-1619802277513.png

 

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).

ooyeniyi_2-1619802666752.png

 

 

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