LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My first XControl - some questions

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! 
0 Kudos
Message 1 of 2
(2,817 Views)
Ideally each instance of a X control should be able to function on it's own.
 
If you like to make the display dependen on the type of data that is being written to it's terminal then you would need to include this information in the data.
 
Another option would be to use a method or property to change the display mode. The data will then be interpreted according to the mode you specified. This is different from the dual mode thermometer in that the data you write to the terminal as always in deg C and converted by the XControl when a user requests deg F.
 
 
Hope this helps
 
Thanks
Karsten
0 Kudos
Message 2 of 2
(2,757 Views)