Skip to main content
added 60 characters in body
Source Link
user31481
user31481

I have an Arduino board with Intel Edison on it. I have tried to read data in Arduino from MatLab through the serial port. I'm sure the Arduino board is working because when I use the serial monitor from Arduino, it shows the data read from the Arduino board. My command is like this in Arduino:

reading = Wire.read(); Serial.println(reading)

   reading = Wire.read();
   Serial.println(reading)

I got errors in Matlab when I tried to work with these piece of code:

s=serial('COM4'); set(s,'BaudRate',9600); fopen(s);

   s=serial('COM4');
   set(s,'BaudRate',9600);
   fopen(s);

MatLab complains that "Port: COM4 is not available. No ports are available. Use INSTRFIND to determine if other instrument objects are connected to the requested device." I have tried with "instrfind()" in matlab and got this:

Instrument Object Array

Index: Type: Status: Name:
1 serial closed Serial-COM4 2 serial closed Serial-COM4 3 serial open Serial-COM4 4 serial closed Serial-COM4 5 serial closed Serial-COM4

   Instrument Object Array

   Index:    Type:     Status:   Name:  
   1         serial    closed    Serial-COM4
   2         serial    closed    Serial-COM4
   3         serial    open      Serial-COM4
   4         serial    closed    Serial-COM4
   5         serial    closed    Serial-COM4

I still can't get any clue on this. Can anybody help me?

I have an Arduino board with Intel Edison on it. I have tried to read data in Arduino from MatLab through the serial port. I'm sure the Arduino board is working because when I use the serial monitor from Arduino, it shows the data read from the Arduino board. My command is like this in Arduino:

reading = Wire.read(); Serial.println(reading)

I got errors in Matlab when I tried to work with these piece of code:

s=serial('COM4'); set(s,'BaudRate',9600); fopen(s);

MatLab complains that "Port: COM4 is not available. No ports are available. Use INSTRFIND to determine if other instrument objects are connected to the requested device." I have tried with "instrfind()" in matlab and got this:

Instrument Object Array

Index: Type: Status: Name:
1 serial closed Serial-COM4 2 serial closed Serial-COM4 3 serial open Serial-COM4 4 serial closed Serial-COM4 5 serial closed Serial-COM4

I still can't get any clue on this. Can anybody help me?

I have an Arduino board with Intel Edison on it. I have tried to read data in Arduino from MatLab through the serial port. I'm sure the Arduino board is working because when I use the serial monitor from Arduino, it shows the data read from the Arduino board. My command is like this in Arduino:

   reading = Wire.read();
   Serial.println(reading)

I got errors in Matlab when I tried to work with these piece of code:

   s=serial('COM4');
   set(s,'BaudRate',9600);
   fopen(s);

MatLab complains that "Port: COM4 is not available. No ports are available. Use INSTRFIND to determine if other instrument objects are connected to the requested device." I have tried with "instrfind()" in matlab and got this:

   Instrument Object Array

   Index:    Type:     Status:   Name:  
   1         serial    closed    Serial-COM4
   2         serial    closed    Serial-COM4
   3         serial    open      Serial-COM4
   4         serial    closed    Serial-COM4
   5         serial    closed    Serial-COM4

I still can't get any clue on this. Can anybody help me?

Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 6 characters in body; edited title
Source Link
dda
  • 1.6k
  • 1
  • 12
  • 18

questions Questions on how to connect arduinoArduino to Matlab through Serialthe serial port

I have an Arduino board with Intel Edison on it. I have tried to read data in Arduino from matlabMatLab through the serial port. I'm sure the Arduino board is working because when I use the serial monitor from Arduino, it shows thosethe data read from the Arduino board, which my. My command is like this in Arduino: reading

reading = Wire.read(); Serial.println(reading)

I got errors in Matlab when I tried to work with these piece of code: s=serial

s=serial('COM4'); set(s,'BaudRate',9600); fopen(s);

MatlabMatLab complains that "Port: COM4 is not available. No ports are available. Use INSTRFIND to determine if other instrument objects are connected to the requested device device." II have tried with "instrfind()" in matlab and got this:

Instrument Object Array

Index: Type: Status: Name:
1 serial closed Serial-COM4 2 serial closed Serial-COM4 3 serial open Serial-COM4 4 serial closed Serial-COM4 5 serial closed Serial-COM4

I still can't get any clue on this. Can anybody help me?

questions on how to connect arduino to Matlab through Serial port

I have an Arduino board with Intel Edison on it. I have tried to read data in Arduino from matlab through serial port. I'm sure the Arduino board is working because when I use serial monitor from Arduino, it shows those data read from Arduino board, which my command is like this in Arduino: reading = Wire.read(); Serial.println(reading)

I got errors in Matlab when I tried to work with these piece of code: s=serial('COM4'); set(s,'BaudRate',9600); fopen(s);

Matlab complains that "Port: COM4 is not available. No ports are available. Use INSTRFIND to determine if other instrument objects are connected to the requested device." I have tried with "instrfind()" in matlab and got this:

Instrument Object Array

Index: Type: Status: Name:
1 serial closed Serial-COM4 2 serial closed Serial-COM4 3 serial open Serial-COM4 4 serial closed Serial-COM4 5 serial closed Serial-COM4

I still can't get any clue on this. Can anybody help me?

Questions on how to connect Arduino to Matlab through the serial port

I have an Arduino board with Intel Edison on it. I have tried to read data in Arduino from MatLab through the serial port. I'm sure the Arduino board is working because when I use the serial monitor from Arduino, it shows the data read from the Arduino board. My command is like this in Arduino:

reading = Wire.read(); Serial.println(reading)

I got errors in Matlab when I tried to work with these piece of code:

s=serial('COM4'); set(s,'BaudRate',9600); fopen(s);

MatLab complains that "Port: COM4 is not available. No ports are available. Use INSTRFIND to determine if other instrument objects are connected to the requested device." I have tried with "instrfind()" in matlab and got this:

Instrument Object Array

Index: Type: Status: Name:
1 serial closed Serial-COM4 2 serial closed Serial-COM4 3 serial open Serial-COM4 4 serial closed Serial-COM4 5 serial closed Serial-COM4

I still can't get any clue on this. Can anybody help me?

Bumped by Community user
Bumped by Community user
Source Link

questions on how to connect arduino to Matlab through Serial port

I have an Arduino board with Intel Edison on it. I have tried to read data in Arduino from matlab through serial port. I'm sure the Arduino board is working because when I use serial monitor from Arduino, it shows those data read from Arduino board, which my command is like this in Arduino: reading = Wire.read(); Serial.println(reading)

I got errors in Matlab when I tried to work with these piece of code: s=serial('COM4'); set(s,'BaudRate',9600); fopen(s);

Matlab complains that "Port: COM4 is not available. No ports are available. Use INSTRFIND to determine if other instrument objects are connected to the requested device." I have tried with "instrfind()" in matlab and got this:

Instrument Object Array

Index: Type: Status: Name:
1 serial closed Serial-COM4 2 serial closed Serial-COM4 3 serial open Serial-COM4 4 serial closed Serial-COM4 5 serial closed Serial-COM4

I still can't get any clue on this. Can anybody help me?