View unanswered posts | View active topics It is currently Tue Sep 29, 2020 2:19 pm






Reply to topic  [ 8 posts ] 
extracting dates from NXT (simultaneous) 
Author Message
Rookie

Joined: Mon May 10, 2010 9:47 am
Posts: 4
Post extracting dates from NXT (simultaneous)
hello all,

I read this forum from a while, and I found lots of important answers.

I need you're help, in a problem.


I am working at a project that studies the movement errors at a mobile robot. Now I have to study also the Mindstorm lego, and I need to extract some dates from NXT.

Situation:
- I need to extract dates from servo motors that are used for movement, and dates from 3 more sensors: accelerometer, gyro, ultrasound and compass!
- the program is write in LEGO mindstorm program (with block)
- I need to record the dates, not needed in real time!

Problems where need help:
1. how can I extract dates regarding the moving motors (text, excel)
2. For other sensors I am able to obtain information, but one by one, not in the same time. Any solutions?

Thank you for your help


Mon May 10, 2010 10:09 am
Profile
Expert

Joined: Mon Mar 15, 2010 4:24 pm
Posts: 124
Post Re: extracting dates from NXT (simultaneous)
Sorry BMA77, but I wonder if English isn't your first language? Are you sure you mean "dates" and not "data"? If you do mean "dates", what dates are you looking for - the date of manufacture of the part or something? If you mean "data", please be more specific about exactly what data you are looking for and we'll try to help.

Sincerely,
Gary


Mon May 10, 2010 5:15 pm
Profile
Rookie

Joined: Mon May 10, 2010 9:47 am
Posts: 4
Post Re: extracting dates from NXT (simultaneous)
Hello

You got me, I am italian :D sorry for my bad english

So, I have the sensor, and I need to record the datas of the sensors (accelerometer(x,y,z), gyro, motor) that are on the robot. I need this because I must resolve some ecuations, in order to determen the movement error.

So I am able to have a .txt file but only for one data from one sensor. And I have 6 : x,y,z, giro, 2 motors. All this 6 values must be recorded in the same time, to be able to obtain a valid solution.

It is possible to record,on NXT, in the same time this 6 values? I don t need them in real time. I can uploud it on my PC after.

Thanks

Best regards,


Tue May 11, 2010 8:59 am
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: extracting dates from NXT (simultaneous)
I think you will find this very useful: http://nxttime.wordpress.com/2010/02/10 ... rovements/

It's a program that allows you to log all your data to Excel via BT. Aswin (one of the forum regulars here) wrote it.

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Tue May 11, 2010 9:07 am
Profile WWW
Rookie

Joined: Mon May 10, 2010 9:47 am
Posts: 4
Post Re: extracting dates from NXT (simultaneous)
thank you

i hope it will work. :)

Best regards


Tue May 11, 2010 9:21 am
Profile
Expert

Joined: Mon Mar 15, 2010 4:24 pm
Posts: 124
Post Re: extracting dates from NXT (simultaneous)
Another simple way to log the data is to do something like:

string TempStr;
StringFormat(TempStr, "%3d,", CurrentPosition);
writeDebugStream(TempStr);
StringFormat(TempStr, "%3d", PositionTarget);
writeDebugStream(TempStr);
writeDebugStream("\n");

Then simply open the "Debug stream" window in RobotC and the data will be displayed in a nice "comma separated" format that you can then easily cut-and-paste into Excel or a text file or whatever you want.

Sincerely,
Gary


Tue May 11, 2010 4:20 pm
Profile
Rookie

Joined: Mon May 10, 2010 9:47 am
Posts: 4
Post Re: extracting dates from NXT (simultaneous)
@mightor

today I will try the program, I hope it will work.

I only need t record datas and the problem is that I don t have bluetooth and the progrem that I use is Lego Mindstorms education NXT (blocks)

@gary

Where i write those comands? as I told I have Lego Mindstorms education NXT (blocks) program.


sorry for bordering you .

thank you for your time.

beste regards


Wed May 12, 2010 8:18 am
Profile
Expert

Joined: Mon Mar 15, 2010 4:24 pm
Posts: 124
Post Re: extracting dates from NXT (simultaneous)
BMA77 wrote:
@mightor
Where i write those comands? as I told I have Lego Mindstorms education NXT (blocks) program.


Ah, well, I guess you'll need to spend the $30 and buy RobotC. This is the RobotC Forums, after all! :)

cu,
Gary


Wed May 12, 2010 11:50 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.