09-01-2009 12:14 PM
Hello All
I am developping drivers for a family of instruments for whitch no IVI drivers are available.
I would like to manage these instruments like any other IVI instruments in my test system
I created a New Class IVI driver with the "Create IVI Custom Class Driver" Wizard of Labwindows/CVI, for my instrument family
Then I created a New Specific IVI driver with the "Create IVI Specific Driver" Wizard, for one of the instruments of my family.
In MAX I created a Instrument Driver Software Module for my specific driver.
In the published APIs tab I can't add the API of my new Class Driver.
Question : How to "publish" IVI class drivers to link a specific driver to a given class driver ?
I use MAX 4.5 and CVI 8.5
Thank you for your help
Solved! Go to Solution.
09-02-2009 09:12 AM
Hello Nveron,
It looks like you will need to manually update the IVI Configuration Store xml file to do two things:
-Add your Custom Class as one of the published APIs
<IviPublishedAPI id="p678">
<Name>IviCustom</Name>
<MajorVersion>1</MajorVersion>
<MinorVersion>0</MinorVersion>
<Type>IVI-C</Type>
</IviPublishedAPI>
-Add the published APIs to the software module
<PublishedAPIs>
<IviPublishedAPI idref="p3"/>
<IviPublishedAPI idref="p8"/>
<IviPublishedAPI idref="p678"/>
</PublishedAPIs>
I just chose p678 as the idref to keep it from conflicting with the other existing idrefs.
Let us know how it goes,
NathanT
09-08-2009 07:15 AM
Thank you Nathan for your suggestion, it works!
Effectively using a high and unused ref number avoids conflicts.
Now when I call the functions of my class driver, the system switches to the specific drivers functions.
Cheers
NVeron
09-09-2009 08:36 AM
Hello NVeron,
I am glad that it worked well for you. Thank you for letting me know.
Thanks,
NathanT