On the Arduino side you need 8 lines of code to setup communication and 1 line of code per variable you want to manage. On the PC side you use a tool named WawiLib-PC (Watch Window Library) that takes care of all communications for you. Serial, SoftSerial, USB, Ethernet and Wi-Fi are supported interface types.
The tool can also be used to read and write Arduino variables as you were changing the cells in an Excel worksheet. WawiLib can create a separate file (with time stamp in its file name) each 15 minutes, hour or day, so long term recording is possible. Data can be recorded time based or change based. Files names can contain date and time to keep the overview.
Change based means that when WawiLib sees that 1 or more of the variables (selectable) change, it writes a set of all values associated with the current data recorder to file. Multiple data recorders with multiple parameters can be active at the same time.
Multiple Arduino boards can be connected at the same time. WawiLib can manage disk space so it can clean up the oldest (time stamped) file making sure your PC does not end up with disk space problems.
If you have problem that occurs from time to time, recording variables over a longer period of time can be a real life saver.
You can use WawiLib also as a very powerful debugging tool as it is able to read and write variables while your sketch is processing its loop. If one uses the Arduino IDE serial output window for debugging (to enter new set points or test input) one needs to stop the main loop and write special code to process the input.
With WawiLib there is a completely different approach: it is the approach used in as in an industrial PLC application: fill in the variables of interest in a table while you are testing, see the actual value and write to them as you were changing variable in an Excel table. Per variable, 1 line of code is all it takes (Arrays are also supported). HEX, INT, UINT, STRING, FLOAT all types are supported.
The bottom window of WawiLib provides very detailed feedback about communication, data recording, variable writing. Text output from the sketch can be sent to this window as you were using Serial.
WawiLib can work over USB, if you use USB, then you cannot use the serial output window as the serial port of the Arduino is occupied. This is not a problem as WawiLib is able to capture serial text messages as Serial and send them to the output window.
Disclaimer: I do not know whether this demo qualifies for this site as there is apart from the free version, also a version of WawiLib that is available for a limited contribution if 25€ to support the costs for the code signing certificate and the support site.
More info www.SylvesterSolutions.com.
Comments
Please log in or sign up to comment.