Quote:
Originally Posted by mbone206
I do not see how Globals can be prevented. Teleop will be using set points for periodic task loops, how else can you do it
|
There are many mechanisms for communicating information from one VI to another (e.g. queues and occurrences), but the default code framework doesn't provide any way to tell both Teleop and Periodic Tasks to use one. Unless you add more input terminals to those predefined VIs, a global variable is a reasonable solution.
There is also a LabVIEW idiom called a "functional global", which might make dataflow purists happier, but I don't think that's an important goal.