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 duringmeasurements. This is necessary for devices that have a choice between multiple measurementhardware with different properties. PGStat modes are device specific, more information can be foundin “PGStat mode properties”.
S0801\n activates autorun mode
S0800\n deactivates autorun mode