LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to associate audio file with progress bar

Solved!
Go to solution

 

Hi all,

 

I have a case in which I need to associate an audio file witha  progress bar. What I want to do is to able to play a audio file which will say " Process started.." Process going on" and process ends, and it shoud be synchronized with the progress bar. Is there a way to do this .

 

Please let me know

 

Thanks,

 

Ankit G

0 Kudos
Message 1 of 6
(2,583 Views)

I think you can use windows media player progress bar activex object to replicate it in your application.

 

0 Kudos
Message 2 of 6
(2,581 Views)

Is this an absolute necessity, or is it just "bling?"  If it is the latter, I could see it getting old really quickly.  Even if it was necessary, try not to make it too obtrusive or the technician will just mute the sound, defeating the purpose.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 6
(2,578 Views)

Hi bill,

 

It is a necessity for my project.

 

thanks,

 

Ankit G


@billko wrote:

Is this an absolute necessity, or is it just "bling?"  If it is the latter, I could see it getting old really quickly.  Even if it was necessary, try not to make it too obtrusive or the technician will just mute the sound, defeating the purpose.




0 Kudos
Message 4 of 6
(2,574 Views)
Solution
Accepted by topic author AnkitG

Are you referring to a LabVIEW horizontal/vertical progress bar, which basically has a U8 integer constantly written to it? Is this in a loop as it fills up?

 

If so, there is an entire palette that allows you to play waveforms. As you're writing to your progress bar the number, you can keep checking what that number is (event or case structure), and when it hits particular values, you play particular sounds. Here is a screenshot of that palette.

 

sound output palette

Ravi A.
National Instruments | Applications Engineer
Message 5 of 6
(2,558 Views)

@Wee-Bey wrote:

Are you referring to a LabVIEW horizontal/vertical progress bar, which basically has a U8 integer constantly written to it? Is this in a loop as it fills up?

 

If so, there is an entire palette that allows you to play waveforms. As you're writing to your progress bar the number, you can keep checking what that number is (event or case structure), and when it hits particular values, you play particular sounds. Here is a screenshot of that palette.

 

sound output palette


Thanks, it was helpful.

 

- Ankit

0 Kudos
Message 6 of 6
(2,533 Views)