Using a number in a command
Posted: 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
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