LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sound player

Bonjour,

 

Ci-joint, un petit VI de 3 séquences :

- la première lit le fichier son "recording data.wav" et indique s'il y a eu une erreur de lecture

- la seconde attend 500ms pour simuler le temps d'un calcul

- la troisième et dernière lit le fichier son "data is recorded" et indique s'il y a eu une erreur de lecture

 

Lorsqu'on lance le VI, le premier fichier son est lu mais pas le second.

Néanmoins, les deux fichiers son peuvent être lus séparément.

 

Que faire?

 

J'utilise Labview 10.0.1 pour Mac.

Pour fonctionner, les 2 fichiers son doivent impérativement être dans le même dossier que le vi sound test.vi

 

En vous remerciant pour votre précieuse aide,

 

JB

0 Kudos
Message 1 of 5
(2,596 Views)

English:

 


Herewith, a small VI 3 sequences:

- The first reads the file's "recording data.wav" and indicates whether there was an error reading
- The second waiting time 500ms to simulate a calculation
- The third and final reading the sound file "data is Recorded" and indicates whether there was an error reading
 

When launching the VI, the first sound file plays but not the second.
Nevertheless, the two sound files can be read separately.


What to do?
 
I use Labview for Mac 10.0.1.

To operate, the two sound files must be given in the same folder as the sound vi test.vi

 
Thanking you for your invaluable help


 

I tried this on a Windows computer and the VI worked as intended. Is there a reason you are not using the Play Sound File VI directly? Also, be aware of using Current VI Path: Why Does My Executable Not Work When Using the Current VI's Path Constant?

0 Kudos
Message 2 of 5
(2,582 Views)

Hello JB DB,

 

This is the international part of the forum, if yuo need a french answer, please post here.

 

I've also tested your VI with LabVIEW 2011 on Windows and it works fine. Does your VI stop running or does it not just play the sound ?

 

Regards,

Mathieu P. | Certified LabVIEW Associate Developer
National Instruments France


Journées techniques : des fondamentaux aux dernières technologies pour la mesure et le contrôle/comm...

0 Kudos
Message 3 of 5
(2,568 Views)

Hello,

 

Firstly, thank you very much for your answer.

I have error number 4803 on the error indicator of the second sound player.

It doesn't stop running, it just does not play the sound.

 

Thanks,

 

JB

0 Kudos
Message 4 of 5
(2,566 Views)

Hello JB,

 

The error 4803 is described here. It seems there is a problem of sampling rate that your sound board doesn't support. Do your two wav files have the same sampling rate ?

 

Regards

Mathieu P. | Certified LabVIEW Associate Developer
National Instruments France


Journées techniques : des fondamentaux aux dernières technologies pour la mesure et le contrôle/comm...

Message 5 of 5
(2,563 Views)