LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Extracting data from sequenced while loops to outside loops

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?

0 Kudos
Message 1 of 5
(2,666 Views)

Can you make a screenshot of the while loop?  I don't have LV with me right now

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 2 of 5
(2,664 Views)
0 Kudos
Message 3 of 5
(2,660 Views)

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 😉

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 4 of 5
(2,652 Views)

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.

0 Kudos
Message 5 of 5
(2,641 Views)