|
bool | bindComponent (Component access, String name) |
| Binds an access object to an internal driver object.
|
|
bool | bindComponent (Component access, String name, int maxSearchDepth) |
| Binds an access object to an internal driver object.
|
|
int | bindSearchBase (int baselist) |
| Assign a new search base to the locator.
|
|
int | bindSearchBase (int baselist, String pathToSearchBase) |
| Assign a new search base to the locator.
|
|
int | bindSearchBaseList (Device device, TDeviceListType deviceListType) |
| Assign a new search base to the locator.
|
|
int | bindSearchBaseList (Device device, TDeviceListType deviceListType, String sublistName) |
| Assign a new search base to the locator.
|
|
| DeviceComponentLocator (Device device, TDeviceListType deviceListType) |
| Constructs a new locator and bind the search base to the specified list type of the device.
|
|
| DeviceComponentLocator (Device device, TDeviceListType deviceListType, String sublistName) |
| Constructs a new locator and bind the search base to the specified list type of the device.
|
|
| DeviceComponentLocator (int baselist) |
| Constructs a new bound to the specified base list locator.
|
|
int | findComponent (String name) |
| Tries to locate a certain component in a hierarchy of components.
|
|
int | findComponent (String name, int maxSearchDepth) |
| Tries to locate a certain component in a hierarchy of components.
|
|
A class to locate components within the driver.
Every driver will offer a set of properties, methods and component lists. mv.impact.acquire.Property objects contain data such as the current gain in dB, the state of a digital input, etc.. mv.impact.acquire.Method objects can be executed like a normal function and mv.impact.acquire.ComponentList objects are used to group certain objects together to form a logical unit.
When it's necessary to locate one or more of these objects without knowing exactly where to look for them this locator class can be used to look for the component.
In general the properties interesting for the user can be found in one of the classes offered by this interface, but when a special property is needed or a new property that hasn't been embedded into the interface, this class offers a way to get hold of its handle.
Example
public enum TMyEnumType
{
metOne = 0,
metTwo,
metThree
};
public void fn( void )
{
if( pDev != null )
{
{
int myVal = 666;
}
PropertyF fProp = new PropertyF();
fProp.write( 3.14 );
EnumPropertyI<TMyEnumType> eProp = new EnumPropertyI<TMyEnumType>();
prop.write( TMyEnumType.metOne );
}
}
int hObj
Returns a unique identifier for the component referenced by this object.
Definition ComponentAccess.cs:155
bool bindComponent(Component access, String name)
Binds an access object to an internal driver object.
Definition ComponentLocatorBase.cs:77
TComponentType type
Returns the type of the component referenced by hObj.
Definition Component.cs:976
A class to locate components within the driver.
Definition DeviceComponentLocator.cs:74
Grants access to devices that can be operated by this software interface.
Definition DeviceManager.cs:157
static Device getDeviceByProduct(String product)
Tries to locate a device via the product name.
Definition DeviceManager.cs:707
This class and its functions represent an actual device detected by this interface in the current sys...
Definition Device.cs:91
EnumPropertyI< T > write(T value)
Writes one value to the property.
Definition EnumPropertyI.cs:449
Provided for convenience only. This type represents a standard 32-bit integer property type.
Definition EnumPropertyI.cs:11
A base class for properties.
Definition Property.cs:109
Property writeS(String value)
Assigns a new value to this property.
Definition Property.cs:667
TComponentType
Allowed components handled by this module.
Definition mvPropHandlingDatatypes.cs:197
- Examples
- Properties.cs.