Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/03/2011 in all areas

  1. Dynamic methods have dynamic dispatch input terminals for the object inputs and outputs of the owning class, meaning one can override those methods in child classes. One cannot override static accessors, but one can in-line these VIs, for instance, to optimize performance. It is possible to switch from one to the other by changing the property of the terminals on the connector pane, but I think it is far better to design appropriately in the first place. In the design approach we use, static accessors are the correct choice in about 98% of the situations we encounter. There are a few rare situations where we need to access data via an interface, so we do define a dynamic accessor method on the interface (but the interface's method never actually executes). My advice is to use a static accessor method unless you are really sure you need a dynamic accessor method. (This answer may depend a bit on one's design approach, though. I think what I have stated is a good rule of thumb, but there may be other sorts of designs that would have different answers.)
    1 point
  2. as I understand them... For any single global... LV does a copy to all instances of the read when writing to any write local. 20 read locals means copy the dat 20 times bfore the write is done. Ben
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.