Does anyone know if it is possible to dynamically change a datalink's source? What I basically want to do is to use data entry expert to allow someone to enter in a parameter name (i.e. module/param1.f_cv) and have that saved off in a variable local to that graphic. Then write a script in the background to replace a datalink's source with the string that was entered (module/param1.f_cv).
Then, later someone could change the data source by updating the string they entered (i.e. module/param1.f_cv to module/param2.f_cv)
Yes it's possible, I would recommend renaming the animation name instead of leaving the default.
Thing you should be worried about is the data entry and if that parameter would actually exist. To resolve this make sure you add [_NOT_CONFIG_OK_] to the end of the animation so the interface won't give error dialog or you can have the user pick the supported names to ensure they don't fat finger.
Once you have this named, saved, you can write logic similar to below for button to update link:
Just be aware that the debugger will give you an error first but if you save, close and reopen the display the error will go away.
In reply to Matt Stoner:
In reply to Alex Lutz:
This is the official online community site of the Emerson Global Users Exchange, a forum for the free exchange of non-proprietary information among the global user community of all Emerson Automation Solution's products and services. Our goal is to improve the efficiency and use of automation systems and solutions employed at members’ facilities by sharing our knowledge, experiences, and application information.
User Groups |
World Areas |
Community Guidelines |
Legal Information |
Contact Community Manager
Website translation provided by
© 2015-2020 Emerson Global Users Exchange. All rights reserved.