Show Posts
Pages: [1]
1  International / Français / Re: [Conseil] Stockage de données moniteur série on: March 26, 2013, 09:52:40 am
Bonjour,

Je rencontre le même problème où je cherche à récupérer dans un fichier (texte) les données envoyées par l'Arduino sur le port série. Les exemples sur le forum ne m'ont pas permis d'y arriver, j'ai essayé de programmer un code en C pour capturer ces données mais c'est sans succès.

Savez-vous comment faire ? Je vous joints mon programme à toute fin utile.


Rob.
2  Using Arduino / Interfacing w/ Software on the Computer / Re: Very slow serial communication between Arduino Duemilanove and Matlab R2011a on: March 19, 2013, 09:33:18 am
Hello again !

I tried with the code in this thread (second page):

http://arduino.cc/forum/index.php?PHPSESSID=1990db88914addd10a5ab8ab70e0d162&topic=6549.15

But it seems that my sample rate is not that good : I have about 800 samples per second in Matlab with a single input.

With two inputs, the number of samples rises to about 1200 per second, and I don't know why.

My aim is to have a sample rate of about 10-12 kHz.

Could you help me ?
3  Using Arduino / Interfacing w/ Software on the Computer / Re: Very slow serial communication between Arduino Duemilanove and Matlab R2011a on: March 07, 2013, 01:44:44 pm
Thank you very much for your answers !

I am going to try it next Tuesday, when I get back my Arduino (lent to a colleague). If I find how to demux signals on Matlab, I will share the solution.
4  Using Arduino / Interfacing w/ Software on the Computer / Re: Very slow serial communication between Arduino Duemilanove and Matlab R2011a on: March 06, 2013, 03:44:25 pm
Ok. I will try and see if it is possible to modify the cadence of request from Matlab, or make a code which don't wait for a request. By the way, do you know how I could do multiplexing with Arduino to send datas from several pins through serial port ? And how to separate the signals when they arrive on the computer ?

Thanks for your help !
5  Using Arduino / Interfacing w/ Software on the Computer / Re: Very slow serial communication between Arduino Duemilanove and Matlab R2011a on: March 05, 2013, 04:56:55 pm
Sorry,

I found that the code has the same name but has been modified. Here is the code I use, attached.
6  Using Arduino / Interfacing w/ Software on the Computer / Re: Very slow serial communication between Arduino Duemilanove and Matlab R2011a on: March 05, 2013, 04:53:54 pm
Thank you for your reply.

Here's the code in the file adiosrv.pde used to communicate with Matlab.

https://code.google.com/p/arduinolab/source/browse/ArduinoIO/ArduinoIO/adiosrv/adiosrv.pde?r=b25efc9ea77bbfde5af8774ec57432f23b24a0f2

I think it has to be possible to send at a high frequency but I don't really understand why it takes so long with this code.
By the way, if I am not clear, don't hesitate to ask me what I mean because I am French and can make some mistakes…

Thank you in advance !
7  Using Arduino / Interfacing w/ Software on the Computer / Very slow serial communication between Arduino Duemilanove and Matlab R2011a on: February 28, 2013, 04:20:45 am
Hello everybody !

My search wasn't that successful, so I put a new topic for this issue.

A couple of weeks ago, I managed to connect my Arduino Duemilanove (atmega168) with Matlab R2011a (on Windows). For doing so, I installed ArduinoIO and uploaded the adiosrv.pde code on my Arduino.

I then decided to test the serial communication between Arduino and Matlab and put a sinus voltage 0-2V on a pin to read its output.
On Matlab, I made a new model in Simulink and put a Scope at the output of a AnalogRead block (and somewhere else, I put the Arduino Setup box correctly configured).

The result : I record a quite stairs looking signal with about 60 steps a second. But I read that the communication can be a lot faster. Do you know where is the issue ?

My aim : recording signal whith a frequency up to 100 Hz.

I hope this is easy to solve for you !


Rob.


P.S. : the serial baud rate is 115200.
Pages: [1]