LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

No reproduce sonido el ejecutable

Solved!
Go to solution

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.

0 Kudos
Message 1 of 10
(408 Views)

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?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 10
(405 Views)

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.

0 Kudos
Message 3 of 10
(382 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 10
(372 Views)

Te adjunto el proyecto

0 Kudos
Message 5 of 10
(360 Views)
0 Kudos
Message 6 of 10
(359 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 10
(353 Views)
0 Kudos
Message 8 of 10
(321 Views)
Solution
Accepted by topic author acadenas

You are using this VI path, which is different in an executable. Start reading here.

 

Use the application directory function instead.

 

altenbach_0-1750453451040.png

 

0 Kudos
Message 9 of 10
(283 Views)

Efectivamente, ahí estaba el error. Muchas gracias 

0 Kudos
Message 10 of 10
(202 Views)