Specifying Property Information
To specify property information in an IMDF file, use the Property
			element. You can include as many Property nodes in an IMDF file as
			you want. Property nodes can be children of the root node, a
				Device node, or a Videoformat node. Property
			nodes can also be children of Section nodes.
Note
Property nodes that are children of the root node affect all
				devices accessed through the adaptor. Property nodes that are
				children of a Device or VideoFormat node
				affect only that device or video format. 
You use attributes of the Property element to specify
			characteristics of the property, such as its name, type, and constraints. For more
			information about Property attributes, see Specifying Property Element Attributes. 
The following example outlines how to use these elements to specify property
			information. The example shows the Property node as a child of the
			root node but you use it the same way as a child of a Device or
				VideoFormat node. The words in italics represent text you
			define.
<ImageAcquisitionInfo> <Property constraint=constraint_value deviceSpecific=true_or_false name=property_name readOnly=always_never_or_whileRunning type=cell_double_int_or_string min=minimum_value max=maximum_value optional=on_or_off default=default_value> </Property> . . . </ImageAcquisitionInfo>
Specifying Property Element Attributes
The following table lists the attributes of a Property node in alphabetical order. The table gives a brief description of the property and lists which properties are required and which are optional.
| Attribute | Description | Required | 
|---|---|---|
| 
 | Specifies the constraints on the property — see Specifying Values for the Constraint Attribute. | Required | 
| 
 | Default value for the property. | Optional | 
| 
 | Boolean value.  | Required | 
| 
 | Minimum allowable value | Optional | 
| 
 | Maximum allowable value | Optional | 
| 
 | Name of property | Required | 
| 
 | If set to  | Optional | 
| 
 | Read-only status of property:
										 | Required | 
| 
 | Data type of the property:  | Required | 
Specifying Values for the Constraint Attribute
Constraints specify information about what are valid values for a property. For example, to specify that a property only accepts positive values, use the positive constraint value, as follows:
constraint=positive
The following table lists all the possible values for the
						constraint attribute in alphabetical order.
						
| Constraint Value | Description | 
|---|---|
| 
 | Property has both a minimum and maximum value. If
											you set the  | 
| 
 | Property is an enumerated value. If set, the
												 | 
| 
 | Value must be positive or infinite | 
| 
 | No constraints | 
| 
 | Value must be positive | 
| 
 | Value must be greater than zero or infinite | 
| 
 | Value must be greater than zero | 
Specifying Enumerated Values
If your property uses enumerated values, you must set the value of the
						constraint attribute to enum, the type
					attribute to character vector, and create
						EnumConstraintValue elements for each enumeration. The
						EnumConstraintValue nodes are children of the
						Property node. 
When you create the EnumConstraintValue nodes, you specify two attributes:
- Value ID 
- Value name 
This example defines the property StrobeEnable. The
					constraint attribute is set to enum. The name attribute of
					the EnumConstraintValue nodes defines the possible values of
					this enumeration: on and off.
<Property optional="on" 
          constraint="enum"
          deviceSpecific="true" 
          name="StrobeEnable" 
          readOnly="whileRunning"
          type="string">
   <EnumConstraintValue id="0" name="off" />
   <EnumConstraintValue id="1" name="on" />
</Property>