To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.robolabOpen lugnet.robotics.rcx.robolab in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / ROBOLAB / 27
26  |  28
Subject: 
Re: Robolab 2.0 aliases
Newsgroups: 
lugnet.robotics.rcx.robolab
Date: 
Wed, 1 Mar 2000 23:10:27 GMT
Viewed: 
5347 times
  
In lugnet.robotics.rcx.robolab, Richard Hamilton writes:
The Robolab 2.0 examples on the CD included with Dave Baum's book Definitive
Guide to Lego Mindstorms contains the program scanbot2nqcextra.vi. In this
program the generic containers are identified by name using some type of alias
mechanism. These aliases are in a blue box with a blue down arrow on the right
side of the box. How does one create and modify these? These were authored by
Ben Erwin at Tufts, so I have sent him an email asking for more info.

These Robolab examples really enhance Dave's book. Unfortunately Dave choose • to
not cover using Robolab in his book.

Ben Erwin kindly explained these to me. This feature is part of Robolab 2.0
extras. When the extras are installed (using Project/Install Extras), in
Functions/Modifiers the control is called Container.CTL. Once this is dragged
to the program area, it appears as a blue box with the name User3 in it. Using
the operate value pointer (pointer finger), left click the container.ctl box
and a list of labels/values appear starting at Red and ending at User 20. This
list can also be used to change the value and label of the container.ctl. This
list is actually a list of integers from 0 to 20. To change the label of a
container.ctl, use the Edit Text pointer. You might want the container to be
called hits instead of User3, which can be accomplished using the Edit Text
pointer.

Using the operate value pointer (pointer finger), right clicking the
container.ctl (blue box) displays a list that allows one to Show/Digital
Display. When this digital display is changed, you change which value in the
list you will be using. The system will not allow the digital display to be
changed to anything other than an integer. If the digital display value is
changed to be greater than 20, the value will work until the container.ctl is
selected with any cursor, then the value reverts back to 20. This makes using
values other than 0-20 a little tricky. Obviously this was developed for the
generic container values which have a range from 0-20. The container.ctl can be
used for other integer values like number of seconds, number of loops, etc.
Remember it can only be an integer value from 0-20.

Using the container.ctl is not hard, and can help make programs more readable
especially when using multiple containers. Now instead of using red, blue, and
yellow containers (variables), you can now name the containers like max-laps,
turns, etc.

This is another example of where Robolab benefits from the power of the
underlying software, Labview.



Message is in Reply To:
  Robolab 2.0 aliases
 
The Robolab 2.0 examples on the CD included with Dave Baum's book Definitive Guide to Lego Mindstorms contains the program scanbot2nqcextra.vi. In this program the generic containers are identified by name using some type of alias mechanism. These (...) (25 years ago, 1-Mar-00, to lugnet.robotics.rcx.robolab)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR