From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-14-2016 08:45 AM
Solved! Go to Solution.
06-14-2016 08:47 AM
06-14-2016 09:00 AM
AE's can work but can also put a restriction on how re-usable your code will be.
I think you are looking for a Singleton Design pattern.
Search this site, there used tobe links and examples.
Ben
06-14-2016 09:39 AM
I use a Data Value Reference in this situation. You just make a DVR that contains your shared class and then pass that DVR into all of your other objects at their initialization. Since everybody who needs to alter the data has a reference to the data, everybody can change it inside of their private methods via an In Place Element Structure.
06-14-2016 10:23 AM
You can install G# and use referrence based classes, which'd make it simple enough. 🙂
They basically work like Crossrulz suggest.
/Y
06-14-2016 10:24 AM
06-20-2016 09:08 AM
Yes.