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.
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.
05-12-2014 06:21 AM
I am using LabVIEW 2012, yes I have look at the DAQmx examples. At the present stage I am generating the signal with the function generator and outputting through the speaker and receiving it with the microphone. Need to compare the two signals from the speaker and microphone in other to make the stable sound source.
05-16-2014 05:25 AM - edited 05-16-2014 05:27 AM
Hello didi,
I have been Out of Office the last few days, but I would like to come back to the questions you were having.
It is not yet a 100% clear to me what you are trying to do:
- You have a non-NI 20 MHz "signal generator" that can generate sinewaves from 100Hz to 10 kHz
- This "signal generator" is connected to a speaker (Is there no amplifier in between?)
- At the other side you have a B&K microphone.
- This microphone is receiving the signal from the speaker.
Some questions from my side:
- Are you having any problems while reading out signals with your PCI-6052e?
- Do you need to generate any signals with you PCI-6052e?
- How are you currently controlling the "signal generator"?
Is this by hand or programmatically?
- What is the end goal of this project?
Is it to improve the stability of the existing signal generator "while it's generating"?
Or in other words: Are you trying to create a closed loop control system?
- Are you currently measuring only the microphone output signal via the PCI-6052e?
- What do you mean exactly with "Need to compare the two signals from the speaker and microphone in other to make the stable sound source"?
Please define:
1) The signal from the microphone:
Is this the signal the microphone output (voltage/current)?
Or is this the signal you receive at the input of the microphone (sound wave)?
2) The signal from the speaker:
Is this the signal the speaker produces (sound wave)?
Or is this the signal your "signal generator" produces (voltage/current) before reaching the speaker?
05-20-2014 04:14 AM
Hello Thicop,
Answers to your questions
It is not yet a 100% clear to me what you are trying to do:
- You have a non-NI 20 MHz "signal generator" that can generate sinewaves from 100Hz to 10 kHz
- This "signal generator" is connected to a speaker (Is there no amplifier in between?)
- At the other side you have a B&K microphone.
- This microphone is receiving the signal from the speaker.
Some questions from my side:
- Are you having any problems while reading out signals with your PCI-6052e?
- Do you need to generate any signals with you PCI-6052e?
- How are you currently controlling the "signal generator"? Is this by hand or programmatically?
- What is the end goal of this project?
Is it to improve the stability of the existing signal generator "while it's generating"?
Or in other words: Are you trying to create a closed loop control system?
- Are you currently measuring only the microphone output signal via the PCI-6052e?
- What do you mean exactly with "Need to compare the two signals from the speaker and microphone in other to make the stable sound source"?
Please define:
1) The signal from the microphone:
Is this the signal the microphone output (voltage/current)? Or is this the signal you receive at the input of the microphone (sound wave)?
2) The signal from the speaker: Is this the signal the speaker produces (sound wave)?
yes.
Or is this the signal your "signal generator" produces (voltage/current) before reaching the speaker?
05-20-2014 04:30 AM
Hello didi,
One thing still remainsunclear:
Which device is going to create the output signal that the speaker will use?
Is this the "Agilent function generator" or is this the NI PCI-6052E card?
05-20-2014 08:53 AM
OK, it sounds like you're all set. The part I didn't get is what your actual setpoint was going to be. Now I see you're going to set up an arbitrary maximum SPL and simply limit the gain of the system (AGC). If you make the system response time very fast you should be able to perform compression on the signal. You could even add some filtering to the input signal and do multi-band compression for different frequency ranges.
Let us know how it works out. Post your code if you want some feedback.
05-20-2014 09:53 AM
Hello ThiCop,
I am going to used the NI PCI-6052E card to create the output signal to speaker.
I have already done that.
05-20-2014 09:56 AM
Using LabVIEW 2012, yes that the idea to used a AGC.
05-21-2014 04:02 AM
Hello didi,
Can you tell me what the goal of the "Agilent function generator" in the current application then is?
PS: Sorry that I am still confused, but I do not see where this fits in the current application.
05-21-2014 06:39 AM
Hello ThiCop,
I am not using the "Agilent function generator" any more in the application I have replaced
it with a Basic functional generator VI.
At the moment the difficulties is in desiging the AGC in LabVIEW.
05-21-2014 08:45 AM
Hello didi,
Can you post any of your code and explain where it is going wrong?