03-23-2011 02:26 AM
I need to create a pulsed signal followed by a delay (see VI). I plan to use the created ptbypt signal to run a stepper motor, but am unable to get the signal outside of the while loops. I have also tried to use queues, but it stops only after a single sine/signal pulse. Does anyone have any suggestions on how to pursue?
03-23-2011 02:42 AM
Can you make a screenshot of the while loop? I don't have LV with me right now
03-23-2011 03:09 AM
Here it is ![]()
03-23-2011 03:27 AM
A while loop, in a while loop. You do know that the outer while loop is only going to execute once, as long as the 2 inner while loops are still running?
The outer while loop is never going to end, because you wired a constant (F) to it.
Which of the two functions is going to execute first?
- the upper part withe the string
- or the lower sequence
I have no idea... If you want to be sure that the upper part executes first, I would wire one on the durations (dbls) to the sequence struct. This way it has to execute first before the sequence can start.
Apply these things, and come back with the result 😉
03-23-2011 10:51 AM
I am trying to generate half a sine wave continously with a delay between every pulse.
The upper string helps establish the duration for the pulse and the delay, when the total time and ratio is defined by the string.
I have added a wire from the string to the structure and added a stop button to the outer while loop, but I am still unsure on how to get a summed output from each sequence frame to outside the loop, so I can use that as an input to a stepper motor.
I was thinking would it be possible to put the stepper motor velocity function into each sequence frame and run it from there.
Thanks.