LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

audio

I have 2 programs which are to be interconnected; first program is pattern recognition and the second is audio output generation.The output of first program should be the trigger to produce an audio output with software triggering. I have a set of 20 pattern matching templates and 20 corresponding wav files. If one of the template is identified then the wav file corresponding to the template should be played on audio device.

Please help me program it.

The first attachment is for image acquisition for pattern recognition

The second attachment is for audio output generation

third attachment is a set of alphabets where each alphabet is a template for Template matching .

 

If an alphabet say "A" is identified then wav file for "A" should be played.

0 Kudos
Message 1 of 8
(2,879 Views)

Didn't you post something almost identical earlier?

0 Kudos
Message 2 of 8
(2,863 Views)

yes sir I posted the same quiery earlier but did not get enough information to complete my project so i reposted.

0 Kudos
Message 3 of 8
(2,851 Views)

can you please help me program it.Iam intrested in learning labview but I have no guidance.

0 Kudos
Message 4 of 8
(2,848 Views)

Sounds like your use case would benefit from a producer-consumer architecture. You can find a template for one if you do a File...New...Templates in LV2012, under "Design Patterns".

0 Kudos
Message 5 of 8
(2,832 Views)

actually iam trying to use the master amd slave architecture.  because when a sign pattern is identified then my audio output should be given. Can I proceed with that?

0 Kudos
Message 6 of 8
(2,825 Views)

Producer/Consumer works better when you want the consumer loop to continue executing as long as there is data in the queue (since a queue can hold N messages). If your "consumer" loop should not do anything until told to, then use master/slave (since notifiers are only one deep and can not be queued).

 

So, yes, for your use case, master/slave is the better pattern.

0 Kudos
Message 7 of 8
(2,818 Views)

I see that there are true and false cases.

In my case if pattern is identified the case is true and audio output should be given. My program for audio output is ready.But i dont know how to run this inside that slave loop.

I was thinking that i will store my wav format audio files in a cluster with index numbers.If pattern identified is "A" how would I activate wav file of stored "A" audio file and run that through loop.

I am attaching the audio program please check and guide me. 

0 Kudos
Message 8 of 8
(2,809 Views)