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.
if( iomc.digitalIOMeasurementMode.isValid() && iomc.digitalIOMeasurementSource.isValid() )
{
iomc.digitalIOMeasurementMode.getTranslationDict( modeDict );
final int modeCnt = iomc.digitalIOMeasurementMode.dictSize();
iomc.digitalIOMeasurementSource.getTranslationDict( srcDict );
final int srcCnt = iomc.digitalIOMeasurementSource.dictSize();
for( int i=0; i<modeCnt; i++ )
{
iomc.digitalIOMeasurementMode.write( modeDict.
get( i ).
getSecond() );
for( int j=0; j<srcCnt; j++ )
{
iomc.digitalIOMeasurementSource.write( srcDict.
get( j ).
getSecond() );
System.out.println( String.format( "Digital I/O measurement result using mode '%s' at source '%s': %s\n", iomc.digitalIOMeasurementMode.readS(), iomc.digitalIOMeasurementSource.readS(), iomc.digitalIOMeasurementResult.readS() ) );
}
}
}
Properties for configuring settings belonging to the digital I/O measurement(Device specific interfac...
Definition DigitalIOMeasurementControl.java:86
int getSecond()
Definition StringIntPair.java:75
Definition StringIntVector.java:11
StringIntPair get(int index)
Definition StringIntVector.java:67
- Note
- This class will only be available if mvIMPACT.acquire.Device.getInterfaceLayout() is set to mvIMPACT.acquire.TDeviceInterfaceLayout.dilDeviceSpecific before the device is opened.