Impact Acquire SDK .NET
DigitalIOMeasurementControl Class Reference

Properties for configuring settings belonging to the digital I/O measurement(Device specific interface layout only). More...

Inheritance diagram for DigitalIOMeasurementControl:
[legend]

Public Member Functions

 DigitalIOMeasurementControl (Device device)
 brief Constructs a new mv.impact.acquire.DigitalIOMeasurementControl object.
 
IEnumerable< TgetEnumerable< T > ()
 Returns an enumerator of a certain type that iterates through the collection.
 
IEnumerator< intGetEnumerator ()
 Returns an enumerator that iterates through the collection.
 
void restoreDefault ()
 Restores the default for every component of this collection.
 

Public Attributes

readonly EnumPropertyI< TDigitalIOMeasurementModedigitalIOMeasurementMode = new EnumPropertyI<TDigitalIOMeasurementMode>()
 An enumerated integer property defining the type of measurement to perform.
 
readonly PropertyF digitalIOMeasurementResult = new PropertyF()
 A float property (read-only) that will contain the result of the measurement.
 
readonly EnumPropertyI< TDigitalIOMeasurementModedigitalIOMeasurementSource = new EnumPropertyI<TDigitalIOMeasurementMode>()
 An enumerated integer property defining where the measurement shall be performed.
 

Properties

IEnumerable< ComponentcomponentEnumerable [get]
 Returns an enumerator that iterates through the collection.
 
IEnumerable< ComponentListcomponentListEnumerable [get]
 Returns an enumerator that iterates through all the mv.impact.acquire.ComponentList elements in the collection.
 
int hObj [get]
 Returns a unique identifier for the component collection referenced by this object.
 

Detailed Description

Properties for configuring settings belonging to the digital I/O measurement(Device specific interface layout only).

Properties in this class will only be available if a device offers digital I/O measurement features.

Example

// This code fragment will print result of measurement using all modes on all sources
// to the standard output.
if( iomc.digitalIOMeasurementMode.isValid && iomc.digitalIOMeasurementSource.isValid )
{
iomc.digitalIOMeasurementMode.getTranslationDict( modeDict );
int modeCnt = iomc.digitalIOMeasurementMode.dictSize;
iomc.digitalIOMeasurementSource.getTranslationDict( srcDict );
int srcCnt = iomc.digitalIOMeasurementSource.dictSize;
for( int i=0; i<modeCnt; i++ )
{
iomc.digitalIOMeasurementMode.write( modeDict[i].Value );
for( unsigned int j=0; j<srcCnt; j++ )
{
iomc.digitalIOMeasurementSource.write( srcDict[j].Value );
Console.WriteLine( "Digital I/O measurement result using mode '{0}' at source '{1}': {2}\n", iomc.digitalIOMeasurementMode.readS(), iomc.digitalIOMeasurementSource.readS(), iomc.digitalIOMeasurementResult.readS() );
}
}
}
bool isValid
Checks if the internal component referenced by this object is still valid.
Definition Component.cs:727
Properties for configuring settings belonging to the digital I/O measurement(Device specific interfac...
Definition DigitalIOMeasurementControl.cs:39
A template class to represent 32 bit integer properties and 32 bit enumerated integer properties.
Definition EnumPropertyI.cs:61
EnumPropertyI< T > write(T value)
Writes one value to the property.
Definition EnumPropertyI.cs:449
EnumPropertyI< T > getTranslationDict(List< KeyValuePair< String, T > > sequence)
This function queries the property's translation table.
Definition EnumPropertyI.cs:114
int dictSize
Returns the size of the properties translation dictionary.
Definition Property.cs:819
String readS()
Reads data from this property as a string.
Definition Property.cs:303
Note
This class will only be available if mv.impact.acquire.Device.interfaceLayout is set to mv.impact.acquire.TDeviceInterfaceLayout.dilDeviceSpecific before the device is opened.
Since
2.1.4

Constructor & Destructor Documentation

◆ DigitalIOMeasurementControl()

brief Constructs a new mv.impact.acquire.DigitalIOMeasurementControl object.

Parameters
[in]deviceA pointer to a mv.impact.acquire.Device object obtained from a mv.impact.acquire.DeviceManager object.

Member Function Documentation

◆ getEnumerable< T >()

IEnumerable< T > getEnumerable< T > ( )
inlineinherited

Returns an enumerator of a certain type that iterates through the collection.

This interface will allow to e.g. write code like this:

Info info = new Info(pDev);
foreach (Property c in info.getEnumerable<Property>())
{
}
A class to query various general information about the device, its driver and other information.
Definition Info.cs:10
A base class for properties.
Definition Property.cs:109

See the framework's documentation about the System.Collections.IEnumerable interface for more information.

Returns
An enumerator that iterates through the collection

◆ GetEnumerator()

IEnumerator< int > GetEnumerator ( )
inlineinherited

Returns an enumerator that iterates through the collection.

See the framework's documentation about the System.Collections.IEnumerable interface for more information.

Returns
An enumerator that iterates through the collection

◆ restoreDefault()

void restoreDefault ( )
inlineinherited

Restores the default for every component of this collection.

Calling this function will restore the default value for every component belonging to this collection.

Note
The caller must have the right to modify the component. Otherwise an exception will be thrown.

Member Data Documentation

◆ digitalIOMeasurementMode

An enumerated integer property defining the type of measurement to perform.

Valid values for this property are defined by the enumeration mv.impact.acquire.TDigitalIOMeasurementMode.

◆ digitalIOMeasurementResult

readonly PropertyF digitalIOMeasurementResult = new PropertyF()

A float property (read-only) that will contain the result of the measurement.

Reading this property will automatically perform a new measurement.

Note
Please note that the signal connected to the digital input must match the selected digital input threshold(see mv.impact.acquire.IOSubSystemBlueFOX.digitalInputThreshold) in order to obtain valid results.

◆ digitalIOMeasurementSource

An enumerated integer property defining where the measurement shall be performed.

Valid values for this property are defined by the enumeration mv.impact.acquire.TDigitalIOMeasurementMode.

Property Documentation

◆ componentEnumerable

IEnumerable<Component> componentEnumerable
getinherited

Returns an enumerator that iterates through the collection.

This interface will allow to e.g. write code like this:

Info info = new Info(pDev);
foreach (Component c in info.componentEnumerable)
{
Console.WriteLine("{0}", c.name);
}
String name
Returns the name of the component referenced by this object.
Definition ComponentAccess.cs:167
A base class to implement access to internal driver components.
Definition Component.cs:133

See the framework's documentation about the System.Collections.IEnumerable interface for more information.

Returns
An enumerator that iterates through the collection

◆ componentListEnumerable

IEnumerable<ComponentList> componentListEnumerable
getinherited

Returns an enumerator that iterates through all the mv.impact.acquire.ComponentList elements in the collection.

This interface will allow to e.g. write code like this:

Info info = new Info(pDev);
foreach (ComponentList cl in info.componentListEnumerable)
{
Console.WriteLine("{0}", cl.name);
}
A class to provide access to component lists.
Definition ComponentList.cs:14

See the framework's documentation about the System.Collections.IEnumerable interface for more information.

Returns
An enumerator that iterates through the collection

◆ hObj

int hObj
getinherited

Returns a unique identifier for the component collection referenced by this object.

This handle will always reference an object of type mv.impact.acquire.ComponentList.

Returns
A unique identifier for the component referenced by this object.