Page 1 of 1

RS232 DATA TRANSFER

Posted: Sun Sep 18, 2011 10:03 am
by ismaeelbit
Hi Lubin,
Please, I need your advice on rs232 data transfer:
1. using your rs232 gui, how can I increase the data port above the maximum 16 lines supported now? I need to port extra 6 lines

2. any example on building custom gui with matlab/labview?

thanks

Re: RS232 DATA TRANSFER

Posted: Sat Oct 08, 2011 12:58 am
by LubinKerhuel
Ismael,

All my bad for the very long delay.
Here is one of my old model where I logged IMU data from a RC airplane (through High range BlueTooth).

Data from IMU sensor were logged at 1Khz I remember while RC receiver set point (refreshed at 50Hz) were sent at much lower frequency.

Some data are packed and some are multiplexed. The "Rx-Tx for Matlab-Labview" protocol is not used here. But it's pretty straight to build your own protocole with simple simulink blocks and to decode it throuth a m script.

I provide here both Simulink model (complete with sensor etc...) and the m script for decoding recorded .txt file (raw data from BlueTooth Virtual UART). You might use rs232gui to log data or any other tools (realterm is pretty nice and much lighter than matlab for outdoor loging with low power laptop).
The script also plot rate gyro data and acceleration as well as RC commands. I used theses to idenitfy the gliders dynamic model.
Actually, results from this glider flight were pretty interresting. I hope getting time to publish all that one day.

Anyway, Home this will help you. Let me know
It is all given as is.

Lubin

Re: RS232 DATA TRANSFER

Posted: Wed Oct 12, 2011 5:55 am
by ismaeelbit
Hi Lubin,
Am grateful for the information and for sharing your precious effort.
I will look into the examples and let you know how far this can take me.

Thanks for the support