I have a problem with my HTPC motherboard, it basically means that I have an intermittant serial port. So I thought I would use G4 as a work around...
I made a gml that tests on load for the correct loading of the serial driver in G4, if not it restarts the htpc. I use the "IF True" in the bottom of the scripting action window.
If I run the gml in grunt, after testing in Girder it locks grunt, shortly after the wait action is actioned. I attach the gml below.