reference a variable on another instance of MLSERVER

If you have created a unique MLServeCmd that performs a unique task, please post it here so others can learn from them.
User avatar
mabrett00
Senior Member
Senior Member
Posts: 195
Joined: Wed Apr 20, 2005 6:16 am
Location: New City, NY
Contact:

reference a variable on another instance of MLSERVER

Postby mabrett00 » Sat Sep 27, 2008 4:36 pm

HI All,

Maybe someone can please help.

I have MLS running on 2 computers in my house. 1 is the main and the other is really only used to control some audio and video equipment. I am trying how to figure out if there is away to reference a variable {{power}} running on the secondary MLS.. the name of the computer is theater2. so I typivcally would call commands on that computer with the "

MLServeCmd[theater2].MLpioneerVSX....

how can I reference the variable on the instance?

I have tried.

[theater2].{{power}}

and a few others, but cant seem to figure it out.

please help.

MAB

User avatar
mcascio
Founder
Founder
Posts: 8270
Joined: Tue Jan 28, 2003 4:03 pm
Location: Kenosha, Wi
Contact:

Postby mcascio » Sat Sep 27, 2008 9:43 pm

Variables are not shared across MLServers.

So you'd have to create a rule on the one MLServer that knows the variable. Just create a rule that checks to see everytime the variable changes, then do a SetVariable to the other MLServer in question.
Mario Cascio
Cinemar, Inc.
http://www.cinemaronline.com

User avatar
mabrett00
Senior Member
Senior Member
Posts: 195
Joined: Wed Apr 20, 2005 6:16 am
Location: New City, NY
Contact:

Postby mabrett00 » Sat Sep 27, 2008 10:41 pm

Mario,

thanks for the reply..

I am very sorry but I cannot absorb what you are saying.. Maybe I am dense but I cant comprehend the concept... can you explain a little better.

thanks

User avatar
DavidL
Simply Incredible
Simply Incredible
Posts: 11071
Joined: Sat Feb 08, 2003 9:39 am
Location: Metamora, Michigan
Contact:

Postby DavidL » Sun Sep 28, 2008 7:14 am

mabrett00
On the primary MLServer, create a MLServer Rule that says "whenever this variable value changes, THEN do a SetVariable of it's new value on the second PC."

You would use a "redirect" method of sending this MLServeCmd to the second PC. This is documented in the MLServer Wiki.


Return to “MLServeCmd Examples”

Who is online

Users browsing this forum: No registered users and 1 guest