11-22-2012 07:48 AM
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.
11-22-2012 08:19 PM
Didn't you post something almost identical earlier?
11-23-2012 07:08 AM - edited 11-23-2012 07:11 AM
yes sir I posted the same quiery earlier but did not get enough information to complete my project so i reposted.
11-23-2012 07:12 AM
can you please help me program it.Iam intrested in learning labview but I have no guidance.
11-23-2012 08:57 PM
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".
11-24-2012 06:57 AM
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?
11-24-2012 01:51 PM - edited 11-24-2012 01:52 PM
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.
11-24-2012 09:34 PM
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.