View Single Post
  #1   Spotlight this post!  
Unread 31-01-2011, 19:06
archwaykitten archwaykitten is offline
Registered User
AKA: John McBryan
FRC #1212 (Sentinels)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Arizona
Posts: 10
archwaykitten is an unknown quantity at this point
Labview objects not distinct?

When I change the settings of a labview object (by double clicking on the object and changing values on its front panel), these settings are changed for all instances of that same object.

For example, I open and name four motors in Begin.vi. When I try to invert one of them through its front panel (by clicking on the invert button), I end up inverting all of them.

At first I thought this behavior was because I copied and pasted all my motors, but it's not. Even when I create new objects through the menu system this non-distinct behavior remains.

Clearly my mental model of how labview works is off. I thought that creating a new object in a block diagram would be the equivalent of instantiating a new object in java: MyClass myObject = new MyClass(); But this is not the case.

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?
Reply With Quote