How to measure voltage using my sound card?
7 views (last 30 days)
Show older comments
I want to measure the voltage signal over a coil using my sound card in real-time. I am using my microphone to input the signals but i'm not sure how to display the signal. I was using dsp.SpectrumAnalyzer to view the signal in dB.
Any help with how to convert and monitor this will be greatly appreciated.
0 Comments
Answers (1)
Walter Roberson
on 16 Mar 2014
If you are using winsound, then check
ai = analoginput('winsound');
out = daqhwinfo(ai);
out.InputRanges
if the output is
-1 1
then that is the most common case. In such a case, -1 corresponds to the most negative voltage the line can carry and +1 corresponds to the most positive voltage the line can carry, and absolute voltage is
Sample * Greatest_Positive_Voltage
See Also
Categories
Find more on Audio I/O and Waveform Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!