problem in creating serialobject with the command serialport

1 view (last 30 days)
Hi!!! I'm a PhD student in a PhD programme of Electronics and computer Science with a degree in Chemistry with almost no experience in controlling my Arduino Uno with Matlab, so my question could be quite simple. Now I have to initializate the serial communication with arduino, so that I create the serialObject with the command serialport. Before to create the SerialObject, I check the serial port available with the command
serialportlist("available")
and from the command the serial port COM3 to which is connected my Arduino results available.
successively I create The serial object with the command serialport
S = serialport("COM3", 9600)
but after creating the serial object, if I can check the serial port available with the comamand serialportlist("available") none serial port results available. what could be the problem?
please, if I poorly described something, tell me so I can define better!!
really thanks for all, sincerely
  10 Comments
Caterina
Caterina on 19 Sep 2023
yes, controlling the pin with configurePin works!!!
really really thanks for yoiur great help, sincerely!!

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!