This class is the abstract base class of the objects used to store the VI control information. Contains the methods for writing and reading control values. More...
Public Member Functions | |
abstract String | GetControlType () |
abstract String | GetNameAndType () |
Returns the name of the control and the type as a String of the form: "name (type)". This must be overridden in the derived classes. More... | |
virtual String[] | GetValue (ref strongnameLabview.VirtualInstrument vi) |
Method for returning a value from the actual front panel control which this class corresponds to. More... | |
virtual void | SetValue (ref strongnameLabview.VirtualInstrument vi, Object value) |
Virtual method for setting a value on the actual front panel control which this class corresponds to. More... | |
Protected Member Functions | |
Object[] | GetValueFromCluster (strongnameLabview.VirtualInstrument vi) |
Method for returning a cluster value from the front panel. The cluster contains the required control value for this class. More... | |
void | SetValueInCluster (ref strongnameLabview.VirtualInstrument vi, Object value) |
Method for setting a value in a cluster. Individual values in the cluster cannot be set, the whole thing must be set. This method reads the whole cluster, changes the relevant value and sends the whole cluster back. There is a risk that the actual cluster may have be changed between the reading and writing, and those changes will be overwritten with the older values. As this method is quick it is hoped that this won't be a problem. A better solution would be not to have clusters that contain values that might need to be set via DCOM, but this is not always possible. More... | |
Protected Attributes | |
SerialisableList< int > | _clusterIndices |
If the control is in a cluster then the index is stored in a SerialisableList. A SerialisableList is used as it provides a Clone method. More... | |
String | _name |
The name of the control. More... | |
Properties | |
String | Name [get] |
This class is the abstract base class of the objects used to store the VI control information. Contains the methods for writing and reading control values.
Definition at line 12 of file LVControl.cs.
|
pure virtual |
|
pure virtual |
Returns the name of the control and the type as a String of the form: "name (type)". This must be overridden in the derived classes.
Implemented in Seci.LabView.Controls.LvRing, Seci.LabView.Controls.LvRadioButtons, Seci.LabView.Controls.LvArray, Seci.LabView.Controls.LvBoolean, Seci.LabView.Controls.LvEnum, Seci.LabView.Controls.LvNumeric, and Seci.LabView.Controls.LvString.
|
inlinevirtual |
Method for returning a value from the actual front panel control which this class corresponds to.
vi | The VI containing the control |
Reimplemented in Seci.LabView.Controls.LvRing, Seci.LabView.Controls.LvRadioButtons, and Seci.LabView.Controls.LvArray.
Definition at line 38 of file LVControl.cs.
|
inlineprotected |
Method for returning a cluster value from the front panel. The cluster contains the required control value for this class.
vi | The VI containing the control |
Definition at line 84 of file LVControl.cs.
|
inlinevirtual |
Virtual method for setting a value on the actual front panel control which this class corresponds to.
vi | The VI containing the control |
value | The new value |
Reimplemented in Seci.LabView.Controls.LvRing, Seci.LabView.Controls.LvRadioButtons, and Seci.LabView.Controls.LvArray.
Definition at line 66 of file LVControl.cs.
|
inlineprotected |
Method for setting a value in a cluster. Individual values in the cluster cannot be set, the whole thing must be set. This method reads the whole cluster, changes the relevant value and sends the whole cluster back. There is a risk that the actual cluster may have be changed between the reading and writing, and those changes will be overwritten with the older values. As this method is quick it is hoped that this won't be a problem. A better solution would be not to have clusters that contain values that might need to be set via DCOM, but this is not always possible.
vi | The VI containing the control |
value | The new value |
Definition at line 112 of file LVControl.cs.
|
protected |
If the control is in a cluster then the index is stored in a SerialisableList. A SerialisableList is used as it provides a Clone method.
Definition at line 18 of file LVControl.cs.
|
protected |
The name of the control.
Definition at line 21 of file LVControl.cs.
|
get |
Definition at line 22 of file LVControl.cs.