LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Play Wav File

I've tried to put the play wave file in the piece I think it belongs but The only thing I heard were Error sounds....

I've attached the piece of the program I believe the command should be because there is a bolean that move's when I shoot.

 

Message 11 of 14
(913 Views)
Enyone an idea ?
0 Kudos
Message 12 of 14
(818 Views)

From the looks of it, you have a button that is "gun triggered sim" that triggers the laser, although it is currently not connected to anything in the program you sent.  I would try replacing the false constant on the case structure in the run case with the gun trigger button and add the event sructure as shown earlier around the button.  I would also recommend that you put a slight delay in your while loop so that you can have some cpu time to check the even structure (maybe 100 ms, using the wait ms VI).

That should allow you to play the wav when the button is pressed and then execute the run sequence.

 

Kenny

 

Kenny

0 Kudos
Message 13 of 14
(792 Views)

that good feedback, you learn here too, it is very true that the WAV format is important that I leave a exemplo can provide

Message 14 of 14
(565 Views)