07-11-2008 11:43 AM
Somewhat..For my boolean indicator, what is the difference between a local variable and its terminal representation. I have the local variable in the while loop and the terminal outside the loop.
07-11-2008 12:27 PM
BME genuis wrote:
Somewhat..For my boolean indicator, what is the difference between a local variable and its terminal representation. I have the local variable in the while loop and the terminal outside the loop.
07-11-2008 01:15 PM
07-11-2008 01:30 PM
Whenever possible, you should wire to a terminal. The local gives you the ability to write to a control and read from an indicator. Tt allows you to write or read in different locations of your block diagram. They are not necessarily evil but you do need to be careful in their use. Because a normal local has no dataflow, it's very easy to have a race condition where the order of a read and a write is unknown. Some new users will use a local with the idea that it makes for 'neater' wiring. Not a valid reason.