NXC: set / change Brick name?

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

NXC: set / change Brick name?

Post by HaWe »

how can I change the Brick name?
To read it, string s=BrickDataName() works.
To change it, I expected sth like "SetBrickDataName" but couldn't find anything... :?
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: NXC: set / change Brick name?

Post by mightor »

I usually change it from inside whatever programming environment I am in. You can do it from inside BrixCC, ROBOTC and NXT-G and probably one of the tools that comes with Lejos, too.

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: NXC: set / change Brick name?

Post by HaWe »

how? (by Bricxcc?)
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: NXC: set / change Brick name?

Post by mightor »

Tools->NXT Screen

Image

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: NXC: set / change Brick name?

Post by HaWe »

congratulations!
read good hidden easter egg... ;)
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: NXC: set / change Brick name?

Post by mightor »

Perhaps there is an easier way to do this, but I'm not aware of it :)

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
h-g-t
Posts: 552
Joined: 07 Jan 2011, 08:59
Location: Albania

Re: NXC: set / change Brick name?

Post by h-g-t »

I think you can change it the data panel section of the communication/ memory block in NXT-G as well.
A sophistical rhetorician, inebriated with the exuberance of his own verbosity, and gifted with an egotistical imagination that can at all times command an interminable and inconsistent series of arguments to malign an opponent and to glorify himself.
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: NXC: set / change Brick name?

Post by mightor »

That is correct but the question was for BrixCC.

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: NXC: set / change Brick name?

Post by HaWe »

mightor wrote:Perhaps there is an easier way to do this, but I'm not aware of it :)
- Xander
no, thx a lot, it's fine!
I only had to do it once because one of my nxts was suddenly "kaputt" and has been exchanged the Lego technical support.
Now already everything again is "in the green sector" :D
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: NXC: set / change Brick name?

Post by muntoo »

Some of the "BricxCC->Tools->???" work too. I think the best one for the job was "Diagnostics", IIRC.
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 2 guests