MethodSCRIPT tips and tricks
Debugging your script
The command send_string "hello world" gives you a little bit more insights, if your program is running as expected.
Calling a script within a script
Unfortunately this is not supported. All code must be entered in one single script file.
Read data from SD card
For sure you can unplug the SD card and put it into your computer. Faster is the command fs_get mytextfile.txt to watch the data inside the terminal window.
WIthout setting the set_pgstat_mode, hardware can't be accessed.
Citation from MethodScript v1.2 document:
PGStat modes are device wide configurations that affect which hardware is used during
measurements. This is necessary for devices that have a choice between multiple measurement
hardware with different properties. PGStat modes are device specific, more information can be found
in “PGStat mode properties”.