06-19-2025 05:44 AM
Tengo un proyecto donde el VI funciona y reproduce un sonido desde un archivo .wav; el problema es que cuando realizo el ejecutable no se reproduce el sonido. Gracias por leer el post.
Solved! Go to Solution.
06-19-2025 05:50 AM
Hi acadenas,
@acadenas wrote:
I have a project where the VI runs and plays a sound from a .wav file; the problem is that when I run the executable, the sound doesn't play.
Does your executable even find the wav file?
Which errors do occur in the executable, so it can't play the sound? (Is there some error handling implemented and do you care for errors?)
06-19-2025 06:32 AM
Hola;
No se muestra ningún error al iniciar el ejecutable, simplemente no se reproduce el sonido desde el archivo .wav Lon tengo alamacenado en una carpeta y con el camino correcto.
06-19-2025 06:52 AM
Hi acadenas,
@acadenas wrote:
No error is displayed when starting the executable, it just doesn't play the sound from the .wav file I have stored in a folder and with the correct path.
Then you need to implement proper error handling - or try to debug your executable…
The most common error (for LabVIEW novices) is to build the path to data files in the wrong way, resulting in invalid filepaths. How do you build the path to your wav file?
06-19-2025 07:01 AM
Te adjunto el proyecto
06-19-2025 07:03 AM
Te adjunto el proyecto
06-19-2025 07:16 AM
Hi acadenas,
@acadenas wrote:
Te adjunto el proyecto
Unfortunately I cannot open your LV2021 project right now, please downconvert to LV2019 and attach again.
When attaching files: RAR usually isn't supported by all OS environments for free, so consider a more usual archive format like ZIP…
06-19-2025 09:20 AM
Aquí te lo paso.
06-20-2025 04:05 PM - edited 06-20-2025 04:05 PM
You are using this VI path, which is different in an executable. Start reading here.
Use the application directory function instead.
07-01-2025 05:12 AM
Efectivamente, ahí estaba el error. Muchas gracias altenbach