08-28-2009 01:33 AM
Greetings All
I'm trying to vary the speed of the loops in which the sound plays.
For some reason I can't get it to increase it's playing/loop speed by very much
I've tried a while loop and a for loop with different times changing the sample mode
from Continuous to finite.
Note: I only put in three sound loops but in the end there will be 8
I did use the wait function but that only speeds up the blinking leds without
the sound.
Any suggestions?
tia sal22
08-31-2009 11:23 AM
08-31-2009 12:12 PM
08-31-2009 12:20 PM
You should really look into subVIs.
You are essentially repeating the exact same code 8 times, just chaning the input/output parameters.
This is a perfect application for subVIs, it will also ensure that your block diagram doesnt require a 10 foot monitor to see all the code.
08-31-2009 12:25 PM
09-01-2009 04:55 PM
Hi,
I noticed that you're creating and clearing the sound task every time you go through the loop. This takes up processing power (and thus time) which can limit how long it takes the loop to finish. Instead, try configuring and clearing the sound tasks OUTSIDE of the main loop (this also applies any functions that you only want to have done once at the beginning or end). Then use the Sound Output Start and Sound Output Stop VIs to control the sound output.