Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to "publish" IVI class drivers in MAX to link a specific driver to a given class driver ?

Solved!
Go to solution

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

0 Kudos
Message 1 of 4
(3,759 Views)
Solution
Accepted by topic author nveron

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

Message 2 of 4
(3,743 Views)

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 

 

0 Kudos
Message 3 of 4
(3,691 Views)

Hello NVeron,

       I am glad that it worked well for you.  Thank you for letting me know.

 

Thanks,

 

NathanT

0 Kudos
Message 4 of 4
(3,664 Views)