Using a number in a command

Forum to ask for any help
Post Reply
gimbers
Posts: 26
Joined: Mon Jul 16, 2012 3:36 pm

Using a number in a command

Post by gimbers » Mon May 20, 2013 12:25 pm

Hi All,

I know there has been a post about this, but I just can't get my head round how to do it!

I have a Meridian AV receiver, controlled via RS-232. I want to use a guage to control volume and can send the ASCii string "VNxx" where xx is the volume from 1-99.

In the command editor, I can create 98 commands to represent each volume command. I can then create a number "#_meridian_volume" to track the guage value. I can then configure 98 custom actions for that number that send the relevant RS-232. For example, when the guage is at 50, a custom action for the number "#_meridian_volume" sends the "VN50" command and so on.

This works, but it seems a bit long winded as I have to enter 98 commands in the command editor, then 98 custom actions for a number. How do I do it using my number? In command editor do I enter one RS-232 command that sends the ASCii string "VN[#_meridian_volume]".

Just can't figure it out! Many thanks in advance,
gimbers

User avatar
DemoPad
Site Admin
Posts: 770
Joined: Thu Jun 14, 2012 10:46 am
Contact:

Re: Using a number in a command

Post by DemoPad » Mon May 20, 2013 12:35 pm

Yep - lets say your number is called VOLUME, which has a range of 1-99. Link it to your gauge, which you've probably already done. Then in the custom action for the number, create just 1 action list, if the number falls within the range 1-99 (ie whenever it changes).

And as the custom action, send your command, which will be

VN[VOLUME]

Much better than having 99 custom range action lists! (and 99 pre-defined commands!)

Post Reply