LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Local variable exercise problem

Hello everyone,

                            This is my first time with locals so please forgive if i'm asking very simple question. My task is to create 3 controls master,left and right. The left and right channel can be set independently; moving the master slide needs to increment or decrement the left and right volumes proportionally. I've tried but so far failed i'm attaching the vi. Please tell me how to set the left and right channels independently along with master.

Naqqash
0 Kudos
Message 1 of 21
(3,971 Views)
Bad luck - your VI did not attach.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 21
(3,969 Views)

Consider, rather than actually manipulating the left and right volume knobs/sliders with the master, that you implement the volume control as the product of the two.

 

In other words, scale the "master" from 0.0 to 1.0 

 

Use Left * Master as your left volume, and Right * Master as your right volume.

 

That's the way a mixing board works anyway. 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 3 of 21
(3,966 Views)

Don't use locals, use property nodes.

 

Maybe something like this:

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 4 of 21
(3,965 Views)
VI can be found here
0 Kudos
Message 5 of 21
(3,959 Views)
Thanks but I've to do it with locals it an exercise for me. By mistake the vi was not attached and I've posted this thread again for this Im sorry. Im attaching it here for convience.
Naqqash
0 Kudos
Message 6 of 21
(3,955 Views)
Look at the example from vt92 but don't use property nodes. I don't understand why vt92 would recomend property nodes instead of locals.
0 Kudos
Message 7 of 21
(3,930 Views)
Thanks i've seen it but in his case only master is control but in my case all the three are controls master,left and right and further both left and right are dependent on master and also they  can be changed independently also. Please help.I've to do it using locals and shift registers.
Message Edited by Naqqash_IIEE on 03-19-2009 02:00 PM
Naqqash
0 Kudos
Message 8 of 21
(3,923 Views)
In the example, all three are controls and the left and right controls can be changed independently and changing the master does change the left and right controls. What it seems is that you need to better define what you need the master to do.
0 Kudos
Message 9 of 21
(3,911 Views)

O.K i try to simply it. Here I've to do two things.

1) when i chang master control left and right should also change proportionaly.(this is what i've achieved in the attached VI of mine).

2) the values of left and right can be changed independently also. (this is what i have not achieved). Hope you can help now.

Naqqash
0 Kudos
Message 10 of 21
(3,906 Views)