What would be a good programming language (or a set of libraries for C ++) for interacting with electronic components (stepper motors, etc.)?

I am not an electronics guy, so I can’t explain exactly what I need. This is a question a friend asks me.

What my friend is looking for is a programming language that would allow him:

  • Interface with hardware (via serial port and USB ports).
  • Recording multithreaded code.
  • Reset user interfaces very quickly.
  • Put your code on Linux and OS X as simple as possible (ok, this is what I want).

He is building a tool for a local group that teaches very simple robotics to college students. Now he uses C ++, but writing user interface code in C ++ is not an entirely fun task. He also uses some Windows libraries for (1), which means that I can neither try his code nor help him with error correction (I use a Mac).

EDIT: Libraries for Python / Ruby are welcome.

+3
source share
5 answers

, Processing Wiring. - , - /, , Arduino . USB .

+4

Java . , API- , . , , , USB . Java 2D Graphics API, Java3D JOGL. Swing , .

+1

, , - Labview. ( , ) USB (, DIO) Labview. . UI ( ).

+1

Ruby and Shoes (GUI) , /

- ( ):

http://shoooes.net/

0

ACE ( http://www.cs.wustl.edu/~schmidt/ACE.html ) - a platform-independent C ++ library (without an interface), QT ( http://www.qtsoftware.com/products/ ) - This is a library of user interfaces for the C ++ platform. Access to hardware, unfortunately, depends on the platform)

0
source

Source: https://habr.com/ru/post/1705620/


All Articles