LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to tune an external component on a board through labview

i need to check the voltage levels of two components(for ex: speaker o/p) in the unit under test using labview .And, if the levels are not to the desired level, I need to tune a couple of other components(for ex:volume controls) on the board so that the level of the speakers comes to desired level.This tuning is not to be done manually. It should be programmed!"
0 Kudos
Message 1 of 6
(2,847 Views)
I think at this point it would be best to write a step by step algorithm or
procedure. You need to decide precisely what it is you want done. After
that, programming it should be a piece of cake.

"Chaitanya" wrote in message
news:5065000000080000007D710000-1042324653000@exchange.ni.com...
> i need to check the voltage levels of two components(for ex: speaker
> o/p) in the unit under test using labview .And, if the levels are not
> to the desired level, I need to tune a couple of other components(for
> ex:volume controls) on the board so that the level of the speakers
> comes to desired level.This tuning is not to be done manually. It
> should be programmed!"
0 Kudos
Message 2 of 6
(2,847 Views)
Hi Mr.Adam,
Thank you for responding to my question. As you mentioned, I have thought about the step by step algorithm. But,I get stuck to the same point. I just want to know how can we tune external component by programming(not by turning some control knobs in front end) such that it inturn changes the voltage level of another component.For example, i want to tune two components by programming ,in circuit. Let them be volume knob components so that the output of other two components,say,speaker controls,gets to desired level.
Thanks
0 Kudos
Message 3 of 6
(2,847 Views)
I ask for a algorithm to see how it would be done if you had to do it by
hand. You really do need to figure out the algorithm first. In general, if
you don't know how to do it by hand then you cant program it. There are few
exceptions to this rule.

Here is a guess as to the algorithm needed.

measure Y \\ instrument driver
error = target - Y
if error > spec then \\ case statement
while error > spec \\ while loop
calculate new X \\ either a +/- increment or a calculated value
based on error
Set X \\ instrument driver
measure Y \\ instrument driver
error = target - Y
end while
end if

"Chaitanya" wrote in message
news:50650000000
500000044C80000-1042324653000@exchange.ni.com...
> Hi Mr.Adam,
> Thank you for responding to my question. As you mentioned, I have
> thought about the step by step algorithm. But,I get stuck to the same
> point. I just want to know how can we tune external component by
> programming(not by turning some control knobs in front end) such that
> it inturn changes the voltage level of another component.For example,
> i want to tune two components by programming ,in circuit. Let them be
> volume knob components so that the output of other two
> components,say,speaker controls,gets to desired level.
> Thanks
0 Kudos
Message 4 of 6
(2,847 Views)
It's pretty hard to offer any specifics without knowing the details about your circuit and how you're interfacing to it. Do you have a DAQ board that will output the voltages and in turn read the result? If you need help in determining what the physical interface should be between a computer and the external components, a lot more information is required.
0 Kudos
Message 5 of 6
(2,847 Views)
In article <50650000000500000044C80000-1042324653000@exchange.ni.com>,
"Chaitanya" wrote:

> Hi Mr.Adam,
> Thank you for responding to my question. As you mentioned, I have
> thought about the step by step algorithm. But,I get stuck to the same
> point. I just want to know how can we tune external component by
> programming(not by turning some control knobs in front end) such that it
> inturn changes the voltage level of another component.For example, i
> want to tune two components by programming ,in circuit. Let them be
> volume knob components so that the output of other two
> components,say,speaker controls,gets to desired level. Thanks

Sounds like you need a board with and analog to digital converters (ADCs)
and another with
digital to analog converters (DACs). Use the ADC board
to check your signal and the DAC board to set it. Depending on the signal
you're checking or setting you may need some signal conditioning so you
don't damage your UUT or DAQ boards.

If these "knobs" are potentiometers then they're probably acting as
voltage dividers. A DAC channel and signal conditioning will replace one
of these. Most of this stuff is off-the-shelf. Check out
www.measurementcomputing.com for cheapy stuff, NI to impress the chicks,
or jameco for home-grown DAQ stuff.

bon chance!

- Kevin
0 Kudos
Message 6 of 6
(2,847 Views)