Go to Post If you want something done about it, than do something about it. - Tetraman [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-03-2010, 14:38
ProgrammerJoe ProgrammerJoe is offline
Registered User
FRC #2832
 
Join Date: Jan 2010
Location: Livonia
Posts: 36
ProgrammerJoe is an unknown quantity at this point
Playing .wav's on the dashboard...

Hey guys,

As we start to work on the final tweaks and touches of the robot, I was looking for someone who had experience with the sound vi's in Labview. Our plan was to have different .wav files playing looped on the dashboard, corresponding to the targeting arrows on the top of the camera, and then have a joystick command be able to toggle the alert on and off. To suppliment this, we bought a USB audio device and plugged a pair of dime store headphones into it to comply with <R82>. However, the code works fine realitive to Labview and the sound is referenced and told to play, but it doesn't actually play the sound. Does anyone have any experience with this niche of vi's that is willing to lend a hand?

Last edited by ProgrammerJoe : 09-03-2010 at 14:56. Reason: More specific goals of the project.
  #2   Spotlight this post!  
Unread 09-03-2010, 14:40
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
Re: Playing .wav's on the dashboard...

make sure that the audio output device is set up correctly, if its not it could be trying to output to the speakers which are most likely muted,
  #3   Spotlight this post!  
Unread 09-03-2010, 14:50
ProgrammerJoe ProgrammerJoe is offline
Registered User
FRC #2832
 
Join Date: Jan 2010
Location: Livonia
Posts: 36
ProgrammerJoe is an unknown quantity at this point
Re: Playing .wav's on the dashboard...

I tried it with just the speakers on to get a control, and it still didn't work. So I'm assuming that either there is some other necessery piece that I am unaware of, or it's a mind numbingly stupid mistake.
  #4   Spotlight this post!  
Unread 09-03-2010, 14:51
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
Re: Playing .wav's on the dashboard...

i'll look at what i have for this and get back to you,
  #5   Spotlight this post!  
Unread 09-03-2010, 15:02
ProgrammerJoe ProgrammerJoe is offline
Registered User
FRC #2832
 
Join Date: Jan 2010
Location: Livonia
Posts: 36
ProgrammerJoe is an unknown quantity at this point
Re: Playing .wav's on the dashboard...

Thanks, I also updated the original post to make it more specific to the end goal of the program.
  #6   Spotlight this post!  
Unread 09-03-2010, 15:03
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
Re: Playing .wav's on the dashboard...

ok then,
there are a couple ways of going about it, you can use the play sound file vi which takes in a device number and a file path, or the play waveform express vi which lets you choose the output device from a list, those are the simplest that i see, though someone else may have a better idea
  #7   Spotlight this post!  
Unread 09-03-2010, 15:06
ProgrammerJoe ProgrammerJoe is offline
Registered User
FRC #2832
 
Join Date: Jan 2010
Location: Livonia
Posts: 36
ProgrammerJoe is an unknown quantity at this point
Re: Playing .wav's on the dashboard...

I used the play sound file vi, and according to the lightbulb, it plays the sound. Problem is, it doesn't make a peep in the real world. But I'll take a look at the play waveform express vi, and get back to you.
  #8   Spotlight this post!  
Unread 09-03-2010, 15:14
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,644
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Playing .wav's on the dashboard...

Are you willing to write your own .NET program?

There are pretty easy ways to play sounds via WMP in combination with .NET framework. I don't have any VB examples on the PC I am on now, but as I recall it was a near trivial program. It is pretty much just a matter of instancing a class and calling a method with the file name as an argument.

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
  #9   Spotlight this post!  
Unread 09-03-2010, 19:04
ProgrammerJoe ProgrammerJoe is offline
Registered User
FRC #2832
 
Join Date: Jan 2010
Location: Livonia
Posts: 36
ProgrammerJoe is an unknown quantity at this point
Re: Playing .wav's on the dashboard...

Status Update:

The latest build of the dashboard works ok soundwise, using the waveform vi's. But having it play the sounds limits camera feedback time and slows it down to the point of the circle that denotes the camera noticibly outruns the picture taken by the camera. I'm probably going to use generic beeps, or switch out for another dashboard alltogether. Thanks for the help, though.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Playing with the Content Center KnightOfIvory Inventor 1 29-01-2006 08:03
See the playing field in 3D Glasses General Forum 2 20-06-2005 20:57
Building the Playing Field AJ Quick General Forum 15 13-01-2003 19:15


All times are GMT -5. The time now is 03:27.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi