LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

want to cut off first timed structure before operation completes

Hello all,

 

I am working with a timed structure because I want to create a waveform that has the 1st half of a gaussian window used as a ramp, at which point it settles out into a steady sine wave. I have set the length of the 1st timed structure frame to be the offset time of the gaussian (which is when it is maximum) and at that point I want to stop that function and begin the 2nd frame of the structure. I cannot get the 1st frame to stop half way through its execution regardless of my time and priority settings. Does anyone have a clue how to get through this?

 

Thanks so much,

Tom

0 Kudos
Message 1 of 4
(2,662 Views)

On the timed structures palette is a function called Stop Time Structure.  You could try that.  I haven't used it before with a timed sequence, but I suspect it would cause the entire sequence to stop as opposed to just the first frame as you are asking.  In which case you might need to break that up into two timed sequences.

0 Kudos
Message 2 of 4
(2,652 Views)
I believe your problem lies in your call to the play waveform express VI. You aren't giving it a device to use.


Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 3 of 4
(2,651 Views)

Mark,

 

The play waveform express VI defaults to your computer's internal sound card. The previously attached program does indeed play the sounds I am looking for; however, instead of playing half of the gaussian modulated sine and moving to the next frame, it plays the whole gaussian pattern, then plays an unmodulated sine.  For some reason, the structure only serves to send an error to the next frame saying it took longer than the specified timeframe. 

 

I also tried running just a timed loop for the half-gauss, but got the same results. 

 

I really appreciate the help here gentlemen! 

 

Sincerely,

Tom

0 Kudos
Message 4 of 4
(2,625 Views)