Page 1 of 1

X20 and X80 script issue

PostPosted: Tue Sep 18, 2018 8:36 pm
by chrisr
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

Re: X20 and X80 script issue

PostPosted: Thu Sep 20, 2018 4:29 pm
by justyn roy
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.

Re: X20 and X80 script issue

PostPosted: Thu Sep 20, 2018 6:54 pm
by chrisr
That is just absolutely fantastic. I was curious how to access that spyder node!!! Thanks for the info.

Much appreciated.