for loop the Node command script

Christie Widget Designer Version 6 - Q&A

Moderator: Moderator Group

Forum rules
When asking make sure to include the operating system and the revision of Widget Designer you are using.

for loop the Node command script

Postby aferors » Mon Mar 14, 2022 4:55 am

Hey there,

I need to send a lot of commands to a lot of nodes, and further to that I need to be able to scale the amount of nodes that I'm controlling

In other words a for loop with an argument of when to stop the loop, easy.
but

the "node1.connect" wont interact/resolve with the arguments of the for loop.

this doesn't work:

for i = 101 to 140{
nodei.connect
}


from reading the manual there is the wdnodecommand line, (maybe a left over from old WD)

This also doesn't work:

for i = 101 to 140{
wdnodecommand(i,"connect")
}


Has anyone any ideas on how they could get a for loop for node commands to work.

Cheers
Drew Ferors
Senior Technician
drew.ferors@tdc.com.au


Technical Direction Company, Sydney Australia
www.tdc.com.au
User avatar
aferors
 
Posts: 22
Joined: Thu Dec 13, 2012 12:18 am
Location: Sydney, Australia

Re: for loop the Node command script

Postby Daniel Kaminski » Mon Mar 14, 2022 1:15 pm

Is this what you are trying to do?

See attached Project.

Daniel
You do not have the required permissions to view the files attached to this post.
--
Daniel Kaminski
Pandoras Box Expert
User avatar
Daniel Kaminski
 
Posts: 1071
Joined: Tue Jul 22, 2008 10:55 am
Location: Herten, Germany


Return to Widget Designer V6

Who is online

Users browsing this forum: No registered users and 24 guests