I am using an Xbee USB Adapter for one Xbee and a Xbee 5V/3.3V Adapter connected to the arduino. In this configuration, I can send "testing" on the arduino and can view it with the IDE and a terminal program called XTCU.
When I try a=arduino('com5') in matlab I am still getting the same error at line 101, but I noticed that the RSSI light on the Xbee shield connected to the arduino comes on as matlab is trying attempting the connection. The other xbee is constantly transmitting the signal. Any suggestions?
After trying your suggestions, I am still getting the same time out error. I noticed that the Rx and Tx lights on the Xbee connected to the arduino are not even lighting up. When I tested the arduino and the Xbees it did? Any other suggestions?
I am attempting to control an unmanned boat, but I am having difficulty getting the serial communication to work. For the wireless communication we are using 2 Xbee series 1. They have been configured and the srv.pde file has been uploaded onto the arduino. I have been using your code for a=arduino('com5') in Matlab and I am getting this error:
Warning: Unsuccessful read: A timeout occurred before the Terminator was reached.
Error using arduino (line 101)
Connection unsuccessful, please make sure that the Arduino is powered on, running
either srv.pde, adiosrv.pde or mororsrv.pde, and that the board is connected to
the indicated serial port. You might also try to unplug and re-plug the USB cable
before attempting a reconnection.
Sometimes the error occurs at line 115, but I haven't done anything different to my procedure when I get this error.
Do you have any ideas how to get past this problem?
I have an error with the combination Matlab(2010a), Arduino Uno R3, Arduino Motor Shield R3 and this package here. There is a Warnig:
"the sketch running on the Arduino does not support the motor shield. No operation will be performed on the Arduino board"
Did anybody set up the original Motor Shield successfully?
vishnu vardhan before that, have you uploaded any sketh on arduino for Matlab Communication? example Adiosrv.ino or Adioes.ino? and have you copy the files arduino.m and install arduino in current folder or matlab?