Scheduling an event

Hello tidan,

I’m concerned about your last statement here – are you using SoftPAC (and therefore can easily see how your charts impact your CPU usage)? Are you familiar with our “Delay” commands, which should be included in any/all looping charts with a reasonable/appropriate delay for whatever your logic is doing? (E.g. in this OptoScript it looks like you don’t need to update faster than once every second, so you could delay for, say, half a second/500ms perhaps.)

BTW, there’s a selection of timing/date related examples here near the bottom of our “Greatest Hits” code samples: Greatest Hits - and mini-lessons

-OptoMary