LEGO NXT - Datalog ability - adjustments of external mode or other solutions?
Mostrar comentarios más antiguos
My question is related to the datalog ability with external mode turned on. What is the sampling rate for the recieved data in the simulink scope? And is there any way to influence this rate?
My problem is that i have a highly dynamic system and i need a high sampling rate for the sensor input signals. With external mode enabled task overruns are very likely to occur, but disabling the external mode is not a solution for me.
The best solution would be if there was any offline datalog solution. So you can save the data on the nxt brick and retrieve it afterwards. I know that the original firmware supports this, but i couldn't find any solution in simulink or even in the api the used firmware offers. Is there any way to implement this?
The other approach i would like to try is to decrease the "communication rate" between simulink and the nxt brick. This would be also satisfying as i only need to get an idea of what is going on. If the sensor values are drifting away i.e. And therfore the time sampling rate does not have to be as high as for the computing algorithm running on the brick. Is there any way to control this?
Respuesta aceptada
Más respuestas (1)
Dominik
el 19 de Feb. de 2013
0 votos
6 comentarios
Guy Rouleau
el 19 de Feb. de 2013
It is good to see that you figured how to implement what I described. I agree that this is not something straightforward that work out of the box.
About your latest problem, I am surprised... I never had timing problems like what you describe. I used this technique with a model sampled at 4ms and logging the timer block always gave me 4ms as expected, unless I put too much computation and got overrun.
As you probably know, it is difficult to debug timing problems with sensor blocks because they depend on external factors. What if you send through Bluetooth the Timer block, the Discrete Clock from the Simulink library and let's say a counter which increment by one every step. How does that match?
Dominik
el 20 de Feb. de 2013
Guy Rouleau
el 21 de Feb. de 2013
Thanks for sharing your adventure.. I hope it can help others!
Alexander
el 7 de Jun. de 2013
Dear Guy Rouleau,
I am working now on my Thesis in Germany and have to programm a Lego NXT made roboter with the VU-LRT Toolbox. I made already some schorts programm but they didn't work. May be you could help me. I received always the same error:
1-The call to lrt_make_rtw_hook, during the after_make hook generated the following error: Build failed during Make all
The build process will terminate as a result.
2-Build failed during Make all
3-Parsing successful for chart: "Messwerte/Packet"(#21)
Please could you help me Thank you for all
Alex
Shivanand
el 7 de Nov. de 2013
Hello Alex,
I am also working with VU-LRT, I have installed program on NXT the data is also displayed on Matlab but i couldnt save this data. When i added more blocks like Timer, Scope it gives errors as enlisted by you. Please tell me if you get any answer to resolve this issue.
-Shiv
Shivanand
el 7 de Nov. de 2013
Hello Rouleau,
I could recieve packets on my PC connected to NXT using USB Blocks.
The packets are displayed on matlab screen.
I want to store the data recieved for different sampling time to check wheather the data recieved is complete or it has some lapses.
How should i do that?
Please help me.
-Shiv
Categorías
Más información sobre LEGO MINDSTORMS EV3 Hardware en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!