Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Need sound to be set off...

Hey,
I'm going to keep this simple. If im taking temp. readings and i have a value that exceeds 80 i want a wav file to be played. P.S. when I've tried to play wav files in labview my readings pause, how do i stop this? plz keep im simple (I'm new)
0 Kudos
Message 1 of 3
(2,790 Views)
I do not have your code so I am guessing...

I recommend putting your code to run the sound file in a parallel loop to your data acquisition loop. When you want it to play, you set a notification in the daq loop and it allows the sound loop to run. Surf the user manual and shipping examples for instructions on notifiers.

If you still see the daq pause, consider increasing your buffer size. My last suggestion is to put the code to run the sound in a subVI and change it's execution system so that it will run in its own thread. There is a shipping document called LabVIEW performance and memory management that discusses this in more detail . You can find it by opening LabVIEW >> help >> search the labview bookshelf.

In the end, you may not be able t
o get both devices--sound card, daq card--to work well at the same time. Both are processor and resource hogs.
0 Kudos
Message 2 of 3
(2,790 Views)

I leave an example that can provide, use it in your program

0 Kudos
Message 3 of 3
(2,393 Views)