Impact Acquire SDK Python
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

 __init__ (self, pDev)
 

Properties

 digitalIOMeasurementMode = property(lib_mvIMPACT_acquire.DigitalIOMeasurementControl_digitalIOMeasurementMode_get, doc=)
 An enumerated integer property defining the type of measurement to perform.
 
 digitalIOMeasurementResult = property(lib_mvIMPACT_acquire.DigitalIOMeasurementControl_digitalIOMeasurementResult_get, doc=)
 A float property (read-only) that will contain the result of the measurement.
 
 digitalIOMeasurementSource = property(lib_mvIMPACT_acquire.DigitalIOMeasurementControl_digitalIOMeasurementSource_get, doc=)
 An enumerated integer property defining where the measurement shall be performed.
 
 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 

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.

modeDict = []
srcDict = []
iomc = acquire.DigitalIOMeasurementControl(pDev)
if iomc.digitalIOMeasurementMode.isValid and iomc.digitalIOMeasurementSource.isValid:
iomc.digitalIOMeasurementMode.getTranslationDict(modeDict)
modeCnt = iomc.digitalIOMeasurementMode.dictSize()
iomc.digitalIOMeasurementSource.getTranslationDict(srcDict);
srcCnt = iomc.digitalIOMeasurementSource.dictSize();
for i in range(modeCnt):
iomc.digitalIOMeasurementMode.write(modeDict[i].second);
for j in range(srcCnt):
iomc.digitalIOMeasurementSource.write(srcDict[j].second);
print("Digital I/O measurement result using mode '" + iomc.digitalIOMeasurementMode.readS() + "' at source '" + iomc.digitalIOMeasurementSource.readS() + "': " + iomc.digitalIOMeasurementResult.readS())
Note
This class will only be available if mvIMPACT.acquire.Device.interfaceLayout is set to mvIMPACT.acquire.dilDeviceSpecific before the device is opened.

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
pDev )

Reimplemented from ComponentCollection.

Property Documentation

◆ digitalIOMeasurementMode

digitalIOMeasurementMode = property(lib_mvIMPACT_acquire.DigitalIOMeasurementControl_digitalIOMeasurementMode_get, doc=)
static

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

Valid values for this property may be: mvIMPACT.acquire.diommFrequency_Hz_10ms, mvIMPACT.acquire.diommFrequency_Hz_100ms.

◆ digitalIOMeasurementResult

digitalIOMeasurementResult = property(lib_mvIMPACT_acquire.DigitalIOMeasurementControl_digitalIOMeasurementResult_get, doc=)
static

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 mvIMPACT.acquire.IOSubSystemBlueFOX.digitalInputThreshold) in order to obtain valid results.

◆ digitalIOMeasurementSource

digitalIOMeasurementSource = property(lib_mvIMPACT_acquire.DigitalIOMeasurementControl_digitalIOMeasurementSource_get, doc=)
static

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

Valid values for this property may be: mvIMPACT.acquire.diommFrequency_Hz_10ms, mvIMPACT.acquire.diommFrequency_Hz_100ms.

◆ thisown

thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static