Hello,
I have a rather large application with many different screens. I'm controlling an actuator with a pulse train. One of the parameters is the pulse voltage.
Now, after lots of development, there also has to be an option to control the actuator by current instead of voltage.
(the resistance measurement is already implemented as a seperate screen in the total application)
How can I best design my application to have a control that is possible to change between current or voltage mode? [control remains the same but value and label change when switched from one mode to antother]
I was thinking to start from the Simple Dual Mode Thermometer XControl example.
Default I would like to use the XControl in voltage mode.
It should only be possible to change to current mode when the resistance has been measured.
(so resistance of the actuator is not fixed and changing to current mode can only occur when the resistance has been measured)
The XControl will be used in a lot of screens but when I change from voltage to current mode I would like all XControls to change to current mode. (and vice versa)
I'm having some difficulties with the division into data, state, facade, properties, methods, ....
Could someone help me out with this?
Any suggestions how this best can be designed?
Preferably I would like to have only one control (or indicator - depending on how it is used) visible for the current or voltage value and change between current and voltage via a global parameter or something. If the change happens the label or caption of the control would naturally reflect this change and also the value inside the control.
I'm not sure how to start with this. All suggestions are welcome.
Thanks in advance!