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 / 379
378  |  380
Subject: 
Re: sub-vi begin vs end control
Newsgroups: 
lugnet.robotics.rcx.robolab, lugnet.robotics.rcx
Followup-To: 
lugnet.robotics.rcx.robolab
Date: 
Mon, 17 Jan 2005 00:26:43 GMT
Viewed: 
9023 times
  
In lugnet.robotics.rcx.robolab, Elizabeth Mabrey wrote:
Hi Tom,

Just for my education purpose,  I'd like to understand the difference
between the "begin" & "end" control boxes at the "Front Panel" window.
Although they look identical, they must be different since they failed to
wire to the blocks next to them once  I switched them at the block diagram
window (the program window).

In a LabVIEW program (vi) there is a front panel and a block diagram.  The front
panel is the user interface and contains both controls and indicators.  When you
place a control/indicator on the front panel a corresponding terminal is created
on the block diagram. In the block diagram, data is read from the control,
"flows" through whatever logic you have created, and then is written to an
indicator.

When this same program is used as a sub.vi, the calling .vi writes data to the
controls of the sub.vi's front panel and reads data from the sub.vi's
indicators.

Now, getting to your question, although begin and end look identical one is an
indicator and one is a control.  If you right click (control click for fellow
Mac users) on the border of each control/indicator, you will have the option of
changing a control to an indicator and vice versa.

I hope this make some sort of sense...

Tom

--thanks
E
-----Original Message-----
From: news-gateway@lugnet.com
[mailto:news-gateway@lugnet.com] On Behalf Of Thomas Johnson
Sent: Sunday, January 16, 2005 4:01 PM
To: lugnet.robotics.rcx.robolab@lugnet.com;
lugnet.robotics.rcx@lugnet.com
Subject: Re: sub-vi begin vs end control

In lugnet.robotics.rcx.robolab, Elizabeth Mabrey wrote:
Hi,

After a sub-vi is created, there are two controls created namely begin
and end.  Would someone explain why they are backwards? That means,
it creates an "end" control linked to the beginning of the sub-vi,
while the "begin" at the end.

It is a leftover from LabVIEW.  When you create a sub.vi,
LabVIEW reuses the name of whatever is wired to the
control/indicator.  This behavior makes perfect sense in
LabVIEW but much less so in Robolab.  FWIW, the names are
little more than labels and you can change them as you see fit.

Tom




Message is in Reply To:
  RE: sub-vi begin vs end control
 
Hi Tom, Just for my education purpose, I'd like to understand the difference between the "begin" & "end" control boxes at the "Front Panel" window. Although they look identical, they must be different since they failed to wire to the blocks next to (...) (19 years ago, 16-Jan-05, to lugnet.robotics.rcx.robolab, lugnet.robotics.rcx)

5 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