compare as many tool options as possible
write an application that interfaces with an input &/or output device
that you made
I took a tool which is Visual Studio 2017 and compare with python and processing.
But, my previous verion didn't make a good path of 'dotnet.exe' was that cause
about build process for C# coding. So, I try to update new version of Visual Studio 2017.
After that, it works fine.
Here I show some diferrences and build a simple coding to each language.
left : C# - helloworld show in console screen.
right : Visual Basic - helloworld show in console screen.
left : C++ - helloworld show in console screen.
right : python - helloworld show in console screen.
processing - simple drawing .
source code file download :
- C# Code :cshelloworld.cs
- VisualBasic Code :vbhelloworld.vb
- VisualC++ Code : hellocpp.cpp
- Python Code : helloworld.py
- Processing Code : drawing.pde
I use the RS232 Serial communication protocols at 9600 bps speeds.
Here is a data packet on RS232 serial communication port.
Basically sensor board(hello.txrx.45 board) send framing data by 8-bit size first
, then 16-bitwise up/down data divide by 8-bit send from RS232's tx-line of sensor board.
Left is python code run on Git bash command mode and right side show processing code
just play button to run.
- python excution command: $ python hello.txrx.45.py COM15(available com port as your environment)
- processing command : press the play button[>] as shown above the code window
Then show compare reading test of each program.
Each programm can do graphic output screen bring from PC resources
via to tell the OS.
These are made on Windows10 PC as client role for serial communication.
Serial test source code :
- Python Code : hello.txrx.45.py
- Reference Processing Code : txrx45.pde
This is to show magnification of strength of touch sensing.