Go Down

Topic: Arduino Serial Port in Matlab (Read 1 time) previous topic - next topic

f.schiano

Hi,

I have an Arduino DUE connected to my Virtual machine on which there is installed UBUNTU.

If I try to create a serial connection at the address where the Arduino DUE is everything is fine.

The problem is that when I close MATLAB and I want to open the Arduino IDE again, there is no serial port available.

I think it´s some kind of closing and deleting that I have to do, but I don´t know what is the right command.

Someone of you can help me?

thanks,
Fab.

baselsw

Hey,

Well, I guess you used something like the following to open the serial port:

Code: [Select]
s = serial(.......);
fopen(s);


To close the serial connection just type the following before closing matlab:

Code: [Select]
fclose(s);

This works for me without any problem.. Which version of Matlab are you using??

//Basel

Go Up