X20 and X80 script issue

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.

X20 and X80 script issue

Postby chrisr » Tue Sep 18, 2018 8:36 pm

All this is super simple, I’m sure a hand full of you all have controlled spyder with Widget
Version 4.7 uses this script to fire preset 7 on page 1

UDPSend,1,spyder[h00 h00 h00 h00]RSC 7 1[CR]

In version 6 would it look like this?

UDPSend(1,”spyder[h00 h00 h00 h00]RSC 7 1[cr]”)

Thanks for any insight!!

I have created a UDP send in the connection manager with 11116 as the incoming and outgoing ports
Thank You

ChrisR
SurfacePro3 - 2GHz i5 - 4GB ram - Windows 10 Pro - WD Pro 4.7 Rev2500 and WD v6
Sager Laptop - Intel 2.4GHz i7 3630QM - 16GB ram - Windows 7 Pro Svc Pack1 - Offline Manager v6
chrisr
 
Posts: 143
Joined: Tue Jan 26, 2016 10:50 pm

Re: X20 and X80 script issue

Postby justyn roy » Thu Sep 20, 2018 4:29 pm

Hi Chris,


In V6, the code looks like this:

Code: Select all
UdpSend(1,"spyder[h00][h00][h00][h00]RSC 10 1 R")



BUT you can do it an even simpler way than that!

Create a Spyder Node.


Then your scripting can look like this instead:

Code: Select all
Project.Nodes.Spyder(1).Com("RSC 10 1 R")


I just find it easier to use Variables inside of the second code without needing the header inline with the rest of the command.


I hope this helps.
Justyn Roy

Online Manual
User avatar
justyn roy
 
Posts: 132
Joined: Tue Sep 27, 2016 1:26 am

Re: X20 and X80 script issue

Postby chrisr » Thu Sep 20, 2018 6:54 pm

That is just absolutely fantastic. I was curious how to access that spyder node!!! Thanks for the info.

Much appreciated.
Thank You

ChrisR
SurfacePro3 - 2GHz i5 - 4GB ram - Windows 10 Pro - WD Pro 4.7 Rev2500 and WD v6
Sager Laptop - Intel 2.4GHz i7 3630QM - 16GB ram - Windows 7 Pro Svc Pack1 - Offline Manager v6
chrisr
 
Posts: 143
Joined: Tue Jan 26, 2016 10:50 pm


Return to Widget Designer V6

Who is online

Users browsing this forum: No registered users and 1 guest

cron