Hi, I have done every step to make it work, and in fact it did worke, but then when i try to do it again it stop working, now i have an error that looks like this: Error in ==> ExampleSK at 9
KinectHandle=mxNiCreateContext(SAMPLE_XML_PATH); Why does this happen?, how do i make it run again?, i can run the video example, but i can't run the kinect, if i use an openni example it works, so the drivers are not the issue, any idea?
Hey,
thank you for this very useful package, it will help me a lot. Is it possible to use this package to manage the Arduino Due board or does it only support Arduino Mega / Uno
greatings from Germany
Tobias
greetings.
First, thank you very much to you, Giampiero Campa =).
and i am attempting to control a robot with Xbee modules. and for the wireless communication we are using 2 Xbee pro series 1. They have been configured and the adiosrv.pde file has been uploaded into 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.
ok, i have a solution for this,
is the xbee have a speed of 9600 bps by default. file has a default adiosrv 115200 and arduino.m file also. then I put them all at 9600 bps and it worked =)
is wonderful to make this interaction between matlab and arduino xbee modules through. again thank you very much Giampiero Campa
Patricia what did you put instead of that "12" in the fourth comment below ? You mentioned you tried higher values but perhaps it wasn't big enough.
I would suggest, with a testing program running on the Arduino which sends data continuously, to see if you can create a connection with the serial command from MATLAB. Try sending and receiving data using that command and possibly the serial block of the instrument control toolbox.
If all fails, another option could be trying to use the Simulink Support Package instead, which might even be more appropriate in your case since it does not require a MATLAB connection to work.
Giampiero,
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?
Comment only