08-08-2012 03:38 AM
How do I achieve interchangeability for DMM 4070?
In C# code, I wrote:
using Ivi.Dmm;
using Ivi.Driver;
IIviDmm iviDmmSession = IviDriver.Create<IIviDmm>("MyDMMLogical", false, false);
where the logical name point to this software module in IviConfigurationStore.xml:
<IviSoftwareModule id="p181">
<Name>NationalInstruments.ModularInstruments.NIDmmWrapper 1.0 Fx40</Name>
<Description>National Instruments Dmm .NET Class Driver</Description>
<DataComponents/>
<ModulePath/>
<Prefix>NIDmm</Prefix>
<ProgID/>
<SupportedInstrumentModels/>
<PhysicalNames/>
<PublishedAPIs>
<IviPublishedAPI idref="p7"/>
<IviPublishedAPI idref="p11"/>
</PublishedAPIs>
<AssemblyQualifiedClassName>NationalInstruments.ModularInstruments.NIDmm.NIDmm, NationalInstruments.ModularInstruments.NIDmm, Version=1.0.40.146, Culture=neutral, PublicKeyToken=DC6AD606294FC298</AssemblyQualifiedClassName>
<ModulePath64/>
</IviSoftwareModule>
But I got this error when creating the iviDmmSession:
IviSessionFactory: An instance of the specific driver referenced by the driver session name could not be created, or did not support the specified type.
Specific driver (software module): NationalInstruments.ModularInstruments.NIDmmWrapper 1.0 Fx40
Class name: NationalInstruments.ModularInstruments.NIDmm.NIDmm, NationalInstruments.ModularInstruments.NIDmm, Version=1.0.40.146, Culture=neutral, PublicKeyToken=DC6AD606294FC298
Please help me out. Thanks.