From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,303 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,301 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,298 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,294 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,278 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,253 Views)