06-07-2017 12:56 PM
Hi everyone,
I'm a french student in intership. Currently improving my programm, I have to warn people when a certain level of electromagnetic waves is reached.
I would like to warn them by a sound and a red light. I already found an example in Labwindows/CVI data but i can't put it in my own programm. So I ask you if there is a way to play a .wav file when the critical level is reached. (Or an other type of file maybe if it's easier).
Thank you for your help,
Matthieu
Solved! Go to Solution.
06-08-2017 02:58 AM
Take a look at this small sample I coded a few years ago: it shows you how to use PlaySound to play a .wav file.
06-08-2017 04:26 AM
Hi
There is a sample project that should help you. If you go to find examples--> In search fill with "wav".
You will find sndplay.cws project. Otherwise, it is stored in :
C:\Users\Public\Documents\National Instruments\CVI2015\samples\sdk\audio
Paolo_P
Certified TestStand Architect
Certified LabVIEW Architect
National Instruments France
06-08-2017 07:12 AM
I know, i already found it, but i couldn't take the "playsound" function. I had a lot of problems. However, I'll try to use the file of Roberto.
I'll tell you if it worked.
Matthieu
06-08-2017 07:58 AM - edited 06-08-2017 08:04 AM
Both PlaySound and sndPlaySound functions are available in Base and Full version of CVI, but to use them you need to:
06-09-2017 06:53 AM
I'm using LW2009. The PlaySound function works, thank you ! 🙂 It helps me a lot (I had an other solution "printf ("\7"); but i was not good)
Thank you again,
Matthieu