Is it only the script that failed or the entire program crashed?
If a script error, what is the error?
FYI: The line number in the error handling can be just close and is not exact
Thanks for the quick reply Oakbarn and poptarts.
Script error was invalid command or some such. I don't have the exact error since the program halted and I was frantically trying to debug and restart the script at the same time. The line of code was a print command to the log which is the same as a previous line in the code and has never failed in the past. I was getting ready to post my brew code and was looking in the manual for fault code descriptions when I saw the existence of the controller log and opened it.
Yes, I have seen script error that was a line off, close but not exact. I did not see any other strangeness in the area it stopped. After restarting everything, the script errored at the same point so I commented out the line and restarted the script. It halted at the same place as if the line of code was still there. Again I removed the line entirely and put a couple of blank spaces just to see that the script still halted with the same error that called out the line that now no longer existed. Weird.
132 [dough_in]
133 BrewStatus = "Dough In Temp Achieved"
134 Comments = "Click PROCEED to start Dough In"
135 call "switch_loop"
136 Print "Start of Dough In"
137 HLT = "HLT Temp" value
138 MTT = "Mash Tun Temp" value
139 Print "HLT Temp is:"
140 Print "HLT"
141 Print "Mash Tun Temp is:"
142 Print "MTT"
143 Print "_______________________"
144 BrewStatus = "Dough In"
145 "Brew Alarm" Active = false
146 "HLT GAS Cntl" Enabled = false
147 "HLT GAS Cntl" background = 1
Don't think the script is an issue, the script errored saying "line 144 Print "____________" was invalid".
Never had this fail, and have been running this version of my main script since Feb of this year. No sub script has been modified either.
I had been doing Remote Desktop sessions from my office computer and iphone to verify I could RD into the brew computer from inside and outside my home network. The only issue I had was that the brew computer did not redirect the sound to the brew computer monitor. I was trying to get that to work just before starting the brew, but ran out of time so I went without sound. Everything was normal until I pushed the button to start the mash steps after mash-in. That is when the program halted and I started troubleshooting.
Here is the controller log. You can see where I was trying to get the computer sound working and testing it by activating the 'brew alarm'. 'Alarm 1' is called when a desired temperature is reached, in this case when the mash-in temp is achieved, and you can see this at 09:48. At 09:49 I unlocked the workspace and started to troubleshoot.
08:54:09.281: Alarm 'Brew Alarm' activated
08:54:10.858: Alarm 'Brew Alarm' deactivated
08:59:02.240: Alarm 'Brew Alarm' activated
08:59:03.685: Alarm 'Brew Alarm' deactivated
09:13:48.545: Alarm 'Brew Alarm' activated
09:13:49.993: Alarm 'Brew Alarm' deactivated
09:48:53.778: Alarm 'Alarm 1' activated
09:49:04.709: Controller unlocked.
09:49:09.629: Alarm 'Alarm 1' deactivated
09:59:43.297: Alarm 'Brew Alarm' activated
10:00:10.795: Controller unlocked.
10:14:09.467: Alarm 'Alarm 1' activated
10:14:25.529: Alarm 'Alarm 1' deactivated
10:15:48.298: Alarm 'Alarm 1' activated
10:16:04.263: Alarm 'Alarm 1' deactivated
10:16:41.186: Device 'BruControl' @ 192.168.1.78 = Disconnected
10:16:41.217: Controller stopped.
10:16:58.552: Controller started.
10:16:58.552: Controller version 1.1 (build 0.22)
10:16:58.552: Loading global settings file 'C:\Users\User\Documents\BruControl\settings.brusettings'...
10:16:58.615: Loading configuration file 'C:\Users\User\Documents\BruControl\default.brucfg'...
10:16:58.740: Opening database: Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\User\Documents\BruControl\Data\Data.mdf;Integrated Security=True
10:17:00.020: Loading device definition file 'C:\Program Files (x86)\BruControl\ArduinoDue.brumc'...
10:17:00.066: Loading device definition file 'C:\Program Files (x86)\BruControl\ArduinoMEGA.brumc'...
10:17:00.082: Loading device definition file 'C:\Program Files (x86)\BruControl\ESP32.brumc'...
10:17:00.098: Loading device definition file 'C:\Program Files (x86)\BruControl\ESP8266.brumc'...
10:17:00.113: Loading device definition file 'C:\Program Files (x86)\BruControl\FeatherM0.brumc'...
10:17:00.129: Loading device definition file 'C:\Program Files (x86)\BruControl\GrandCentralM4.brumc'...
10:17:00.144: Loading device definition file 'C:\Program Files (x86)\BruControl\M5_Stack.brumc'...
10:17:00.348: Starting data exchange servce...
10:17:00.363: Device 'BruControl' @ 192.168.1.78 = Connected
10:17:00.519: Failed to start data exchange service, exception: HTTP could not register URL http://+:8000/. Your process does not have access rights to this namespace (see
Configuring HTTP and HTTPS - WCF for details).
10:17:42.548: Alarm 'Alarm 1' activated
10:17:58.462: Alarm 'Brew Alarm' activated
10:17:58.462: Alarm 'Alarm 1' deactivated