View Single Post
  #4   Spotlight this post!  
Unread 31-01-2011, 23:51
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Labview objects not distinct?

Quote:
Originally Posted by archwaykitten View Post
So how does it work? What's going on instead? Is there even a way to instantiate new objects the way you would in an object oriented language?
LabVIEW is a data-flow language. It works a little bit "inside out" from the way you're trying to think of it. Variables (and by extension objects) are represented by the wires between blocks. As Greg said, the blocks represent function calls.

I think it's best not to try to understand it based on what you know of other languages. The more knowledge you bring to the task, the more you will have to unlearn before you can get to know LabVIEW on its own terms.


In your specific example of the Motor Open, you shouldn't be doing anything with the vi front panel. You should create a constant wired to the Invert input of the vi icon (right-click the connector on the icon and choose Create->Constant from the popup menu) and set that constant to be either T or F.
Reply With Quote