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
RS232 DATA TRANSFER
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: RS232 DATA TRANSFER
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
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
- Attachments
-
- Flight003.txt
- One flight data, for fun... uncomment flight003 on script line 16...
- (832.25 KiB) Downloaded 980 times
-
- ExtractData.m
- (9.55 KiB) Downloaded 974 times
-
- MixerSimple_LogIMU_RawDatas_30f4012.mdl
- (161.19 KiB) Downloaded 979 times
-
- Posts: 19
- Joined: Mon Feb 28, 2011 5:00 am
Re: RS232 DATA TRANSFER
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
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
Who is online
Users browsing this forum: No registered users and 17 guests