View Single Post
  #21   Spotlight this post!  
Unread 21-01-2009, 07:30
Russ Beavis Russ Beavis is offline
Registered User
no team
 
Join Date: Nov 2005
Location: Manchester, NH - DEKA R&D Corp.
Posts: 341
Russ Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond repute
Re: How do i find a variable and use it on Labview

Excellent point, Alan! Maybe Chris was getting too hung up on that concept.

In general, you should be able to do all of your programming without using global or local variables. Wires can go "everywhere" by simply wiring "through" structure boundaries or exploiting shift registers or sequence locals (look 'em up). Variables are only really necessary when

A) You want to clean up your block diagram since having wires everywhere can get out of hand.

or

B) You've got a set of parallel processes that need to share data (although I believe there may be a few other more advanced options that could be used). Processes WILL NOT run in parallel when they are wired together (since a wire cannot be read from until it is written to whereas variables can be read from at any time).

Another suggestion - check out Highlight Execution mode. It can be really handy for helping understand program flow and debugging.

Russ
Reply With Quote