Support Board
Date/Time: Sun, 22 Feb 2026 00:44:55 +0000
Post From: OS Timers vs SC Timers discussion again... SC Timers chart update limitations
| [2026-01-28 19:02:14] |
| @sstfrederik - Posts: 412 |
|
thanks. Sure sending to msg log at every call might not be the best case. But even sending a counter to the log every 10 seconds only shows about 33 calls. If study gets called more often that counter should be way higher. Update: on a fresh SC installation it seems to be fine (420 calls in 10 seconds). Unsure why the other installation is not responding the same way ... SCSFExport scsf_SST_TestFunction(SCStudyGraphRef sc)
{ int& PriorArraySize = sc.GetPersistentInt(1); // Set the configuration variables if (sc.SetDefaults) { // Set the study configuration and defaults. sc.StudyDescription = "Test"; sc.GraphName = "Test"; sc.AutoLoop = 0; sc.UpdateAlways = 1; return; } int& counter = sc.GetPersistentInt(1); SCDateTime& Now = sc.GetPersistentSCDateTime(1); SCDateTime& LastCall = sc.GetPersistentSCDateTime(2); // Data processing if(sc.IsFullRecalculation){ counter = 0; return; } //push message to log to see update interval Now = sc.CurrentSystemDateTime; if(Now > LastCall + SCDateTime::SECONDS(10)){ LastCall = Now; int calls = counter; SCString callsMsg; callsMsg.Format("Calls in the last 10 seconds: %d", calls); sc.AddMessageToLog(callsMsg,1); counter = 0; } counter++; } Date Time Of Last Edit: 2026-01-28 19:26:38
|
