Login Page - Create Account

Support Board


Date/Time: Mon, 08 Sep 2025 10:46:17 +0000



Post From: Importing levels to Sierra

[2025-09-04 16:29:20]
User719512 - Posts: 321
I would investigate using OpenXLSX from your Sierra study to read the excel file and keep track of the next time to read from the file based on a hard-coded or input to your study. Since OpenXLSX is as header only solution you can still build with Sierra build systems or using Visual Studio or similar.


// pseudocode

// init using whatever logic you prefer for study reload
// you could also store the last read time in the sc.StorageBlock for better experience
if (sc.Index == 0) { persistentLastRead = now() }

...

if (persistentLastRead >= now()) {
readFromFileAndUpdateLevels();
persistentLastRead.AddSeconds(15);
}
else {
// do nothing;
}

You get the idea... Happy coding!