1
Support Questions / Parameter files
« on: December 15, 2016, 08:35:47 AM »
I've searched the boards, and if the solution to this is here I over looked it.
What I'm wanting to do is create a single form that gets a parameter file passed to it. The parameter file would contain indexed tags that would be distributed to controls upon loading the form.
I can create a form for each "station" but this is really inefficient. The ability to have one form whose tag references change based on an INI file would be very beneficial. Is this something AdvancedHMI can do currently? If not, I'll try to develop a solution and submit it for inclusion in to the next release for AdvancedHMI. Do you have any recommendations on how to go about implementation?
I'm currently leaning toward adding a property to the FormChangeButton Control that specifies the INI file. Then maybe a subroutine in a module file that can be called on form load that will iterate over a collection of objects in the target form that does a search and replace for the index with tag.
What I'm wanting to do is create a single form that gets a parameter file passed to it. The parameter file would contain indexed tags that would be distributed to controls upon loading the form.
I can create a form for each "station" but this is really inefficient. The ability to have one form whose tag references change based on an INI file would be very beneficial. Is this something AdvancedHMI can do currently? If not, I'll try to develop a solution and submit it for inclusion in to the next release for AdvancedHMI. Do you have any recommendations on how to go about implementation?
I'm currently leaning toward adding a property to the FormChangeButton Control that specifies the INI file. Then maybe a subroutine in a module file that can be called on form load that will iterate over a collection of objects in the target form that does a search and replace for the index with tag.