I’m hoping this is a very simple question.
I’ve copied this script into my ‘scripts’. I click run and the counter increases by 1, however the SXT doesn’t do anything. It seems i should be putting it in a loop, but i cant figure out how. =\
I’ve been poking around in the manual which is where i found the script, but cant find any how to on it.
It can be very easy to make a typo or have some unexpected error from transferring a script to a different model or hardware type. There aren’t many easy ways to troubleshoot a script. One method I use for feedback is to insert a logging command at various points in the script, such as;
:log info “message text”
or
:log info strvariablename
If it doesn’t write to the log, comment out script lines until it does. Eventually you will locate the problem.
Thanks for the reply.
Do scripts loop automatically or do i need to add something extra for that?
You have to do a for or while command for it to loop. One thing I did to loop it was to add a counter logic, and while the counter was less than a number, continue running the while loop with a 1s delay at the end until the counter was higher than the timer. I basically set it so that when the counter hit 1200 seconds it would stop running and terminate the script. I then set a scheduler to run that script every 20 minutes in the event the script were to get stopped by another user or it got an error.
karma for taking the time!