Custom IO


Note: To use real IO you need to disable Simulator Mode.


It is possible to connect JGrafchart to arbitrary analog and digital inputs and outputs by implementing the Java interfaces in the package grafchart.sfc.io. Your implementation should be placed in its own package, preferably grafchart.sfc.io.<myCustomIOName>. There are scripts prepared for compiling and running with your IO in bin/CustomIO/. Edit these scripts to specify your IO package and class name.

ExampleIO

An included example implementation, ExampleIO, writes all output to the terminal and returns random values as inputs. The example is found in source/grafchart/sfc/io/example/. Use the startup script bin/runExampleIO.bat (Windows) or bin/runExampleIO (Unix/Linux/Mac) to run with the example IO.