02-01-2011 08:15 AM
Here's where I'm at. I need at access the data members of the positioner class from the second loop. I cant seem to figure it out.
As you can see... I'm new at LVOOP.
Solved! Go to Solution.
02-01-2011 08:18 AM - edited 02-01-2011 08:19 AM
Search for the design pattern called "Sinlgeton".
A non-LVOOP version would be called an Action Engine.
Ben
02-01-2011 08:21 AM - edited 02-01-2011 08:22 AM
I will do that Ben... thanks.
One quick question though. Is there any reason I shouldnt create an indicator at the right shift register in the top loop, and then use
a property node (value) in the bottom loop?
EDIT: The purpose is to use OOP though. Unless I dont understand correctly.
02-01-2011 09:27 AM
First quick answer is "the indicator on the outside of the loop will not update until the loop is done.
If inside just prior to SR, sure you can get away with it but you are opening up a situation ripe for a race conditions.
Singlton is the LVOOP answer.
Ben
02-01-2011 10:10 AM
Thanks Ben.