LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

case specific adjust/defaults

I have an audio equalizer controlled by 11 slide controls; additionally it has 23 individual presets coded in with numeric constants.  Is there any way to adjust the values within each case and have them return to a case specific default once the case is switched?

 

Example: You switch to a low bass presets but still find it to have too much bass. I want to be able to adjust the bass lower and once I select a new case have the low bass preset reset to default values within its case.

I have attached my EQ VI along with the 11 band subvi. Any help would be greatly appreciated. 

0 Kudos
Message 1 of 3
(476 Views)

Hi nrm,

 

first of all: use arrays when you need to store 11 elements of related information!

It will also help you to create more readable code…

 

To your question:

- You should store the current set of EQ data in a shift register and display it on the FP.

- Now use an event structure to handle user interaction: when the user selects a new EQ preset you should overwrite the values in the shift register. When the user changes some values on the FP you also store those change data in the shift register.

 

What's the purpose of having wired a zero to "Wait for multiple"?

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 2 of 3
(463 Views)

To be honest I just started a labview class this semester (we are actually learning about arrays tomorrow). This is a separate project I'm trying to complete in parallel with it. Thanks for the help and a point in the right direction.

0 Kudos
Message 3 of 3
(443 Views)