|
| 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") |
|
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.