I have no idea how to interface arduino with a GUI

I am trying to complete a project where I can interface an arduino uno with a GUI on RAD studio via the serial port USB. It must be written in C++ and the GUI has to be on RAD studio. My main problem is I don't really know how the interface works via the USB cable and all the GUI arduino projects online are using something other than RAD studio. In addition, they are all written in the arduino language. I am going to try and just copy the code into RAD studio and see what happens.

I know C++ a fair amount and all the the GUI has to allow me to do is something simple like flash some LEDs.

Arduino_dos:
I am trying to complete a project where I can interface an arduino uno with a GUI on RAD studio via the serial port USB. It must be written in C++ and the GUI has to be on RAD studio. My main problem is I don’t really know how the interface works via the USB cable and all the GUI arduino projects online are using something other than RAD studio. In addition, they are all written in the arduino language. I am going to try and just copy the code into RAD studio and see what happens.

I know C++ a fair amount and all the the GUI has to allow me to do is something simple like flash some LEDs.

I have no idea what RAD studio is, but if you are using a Windows system, then program for a serial port and let Windows assign it to the USB and take care of all the conversion.

You should have seen that being used on all the other GUI you looked at.

Paul

Yes, I am using windows.

You talk to the Arduino via the serial port. The code running on the Arduino reads what you send via the serial port, and the code on the Arduino board parses it to figure out what to do in response to it (see the serial input basics tutorial in programming questions section for the arduino-side stuff).

You also need to write the GUI program, and have it send those commands to the serial port that the Arduino is on.

This simple Python - Arduino demo should give you the general idea about the PC-Arduino communication. You should be able to replace the Python code with equivalent functionality in any other programming language.

Also have a look at the examples in Serial Input Basics - simple reliable ways to receive data. There is also a parse example to illustrate how to extract numbers from the received text.

The technique in the 3rd example will be the most reliable. It is what I use for Arduino to Arduino and Arduino to PC communication.

You can send data in a compatible format with code like this (or the equivalent in any other programming language)

Serial.print('<'); // start marker
Serial.print(value1);
Serial.print(','); // comma separator
Serial.print(value2);
Serial.println('>'); // end marker

…R

Arduino_dos:
https://www.embarcadero.com/products/rad-studio

Yes, I am using windows.

Looks like a complete source for what you want to do. I am surprised you have not found the way they interface to a serial port.

Paul