Ip range

Moderator: Moderator Group

Ip range

Postby genes » Fri Feb 14, 2014 4:02 pm

Hi,

I'm making a widget for a shiw i'm on. The idea is to control 15 barco units ( lamp on/of ) with two buttons, one for on one for of. Is there a way to program the buttons with an ip range from 192.168.100.101 to 115. Or do i have to make 15 sets of buttons.
Or is the correct way to do it to make 15 tcp connections and program a range of id's to the buttons?
Grt,
Genes
genes
 
Posts: 14
Joined: Sat Dec 17, 2011 6:12 pm

Re: Ip range

Postby JustynR » Fri Feb 14, 2014 10:53 pm

There are a few ways you could make this happen.
The way I would do it:

First, create 15 TCP connections with the correct port numbers.

Next, I would create 1 button labeled "Projectors ON" that turns all of the projectors ON with the following script:

Code: Select all
For 1 to 15
TCPSend,for.index,(PWR1)[cr]
WDWait,5
Next


The TCP script that I have included here is for turning on Christie Digital projectors, I can't think of what the Barco protocol is at the moment.
The 'WDWait' is because I've had issues with all of the lamps turning on at the same time... the transformer didn't like it!

Next I would create a button with the following script:

WDMacroBoxYesNo,Shut Down?!,This will turn off all of your projectors... Are you sure?!,ShutDown,NOTHING

Then create a Macro named "ShutDown" with the following script:

Code: Select all
For 1 to 15
TCPSend,for.index,(PWR0)[cr]
Next


The Macro approach makes sure that you're not going to accidentally shut down all of your projectors!!

Cheers,
Justyn Roy
Field Application Specialist
Christie Digital
Toronto Ontario Canada
JustynR
 
Posts: 555
Joined: Wed Mar 25, 2009 1:33 am
Location: Toronto, Canada

Re: Ip range

Postby genes » Tue Feb 18, 2014 10:20 pm

Hi Justyn,

Thank you!

This is exactly what i wanted to know.

So for a lamp on I must use the following script:

For 1 to 15
TCPSend,for.index,[hfe h00 h00 h03 h02 h76 h1a h01 h96 hff]
WDWait,5
Next

grtz,
genes
 
Posts: 14
Joined: Sat Dec 17, 2011 6:12 pm

Re: Ip range

Postby Sam Kriemelmeyer » Thu Jun 05, 2014 2:11 am

so did that work for you?
Sam Kriemelmeyer
Theatrical Concepts
samk@theatrical.com
User avatar
Sam Kriemelmeyer
 
Posts: 62
Joined: Wed Aug 20, 2008 6:32 pm
Location: ventura ca / baltimore md


Return to Widget Designer V4.7

Who is online

Users browsing this forum: No registered users and 5 guests