From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-14-2007 03:40 PM
08-14-2007 04:42 PM
08-14-2007 05:16 PM
Hmm, I have the first situation, a single loop in which the LEDs are continuously updated. I am not sure if I'm getting what you're saying though--I want it to continuously be generating the tone, so if the sound has played on one iteration of the loop, it should keep playing on the next iteration if the LED is still lit up. Also, I guess I don't know anything about how to create sounds. I tried using the Beep VI with my own frequency and duration, but then it wasn't a continuous tone. Also, I think it got behind because when the LED turned off, it kept doing its beep beep beep thing.
08-14-2007 06:53 PM
Hi,
For the continuous sound generation you can look at Continuous sound output.vi at NI Example Finder
If your booleans are going to be updated continuosly, use them to run above VI as a sub-vi, that will give you something that you like.
Depending on how frecuently you update your booleans probably you´ll get a non-continuous sound, adjustments should be made maybe.
08-15-2007 08:59 AM
08-15-2007 12:19 PM
08-16-2007 08:05 AM
08-17-2007 03:09 PM
08-20-2007 06:26 AM
Thanks to everyone who helped with this. I finally figured out what the problems were with playing the sounds on my Windows Mobile PDA. Problem #1 was that the function generator I was using with Continuous Sound Output.vi did not work on the PDA. Or perhaps it needed to be more completely configured on the PDA than it does on PC. In any case, when I switched the the Sine Waveform Generator it worked. The other problem was that the PDA seems to need the data to be converted from Waveform [DBL] to 1D array [U8] to work in the sound VIs. The PC seems to be much more forgiving about this, because it handles it okay. For the PDA I first used the GetWaveformComponents, and then converted the Y output to U8 before inputting that into SO Write.
This still doesn't work great, because I haven't figured out how to multithread this sound generation part with my data acquisition part, but at least it's functional enough for the data collection that has to happen this week!
Thanks again!