


Where ‘COM5’ is replaced with an appropriate interface path (which can be found in the Device Manager on Windows). In order to establish the connection, the serial port object needs to be created first: All of them, together with a brief description, can be found on the website. Once the package is loaded, all functions for serial communication can be accessed. You can easily check if package is loaded correctly using the flowing: By default, package is not available from prompt and must be loaded each time with the command: If installed correctly, you will not receive any message, otherwise error message will appear.

Pkg install instrument-control-0.2.1.tar.gz Open the folder containing downloaded files in Octave and in prompt execute command: In particular, we established connection with Stellaris LaunchPad running Energia code which is Arduino compatible.įirst, an instrument-control package must be installed. A sample code, illustrating described procedures is also enclosed. We present straightforward instructions on how to establish serial communication, manage connection settings, send and receive data. GNU Octave is an open software that recently, with release of instrument-control package, allows for all of that, the only downside being very limited documentation and lack of provided examples to help with debugging. Being able to easily establish connection trough serial port communication and then also analyse, process and visually represent received or send data, can therefore be useful in many cases. Many devices connect to the computer trough serial interface.
