Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Using IVI specific driver as a class driver

Hi I created IVI specific driver. Type of created instrument is Digital Multimeter, device prefix is IviPok_
Everything works fine e.g. I can intialize the device by IviPok_init(...)
 
My problem is that I want to access my driver by prefix IviDmm, so I want to use advantage of interchangeabilty so I don't have to change program if i change multimeter.
 
I think it's possible, because I installed driver for HP34401a and it has also his prefix hp34401a_, but i can access it by IviDmm
 
I can probably do it in MAX, but no idea how.
BTW, my driver doesn't have any special functions it's just an ordinary multimeter.
 
Thanks, Michal
0 Kudos
Message 1 of 6
(4,866 Views)

Hi Michal,

You should first create a Software Module entry for your driver in MAX under IVI Drivers>Advanced section. Then you can create a new Driver Session for your Software Module under the Driver Session section. Finally, you should associate a logical name with the driver session you have created.

If you are using CVI 8.0 and ICP 2.2 or later, you should be able to access IVI tools such as IVI Specific Driver Test Suite and IVI Installer Creator. With the IVI Specific Driver Test Suite, you can test your driver for the compliance with the IviDmm spec. Using the IVI Installer Creator, you can create an IVI compliant installer for your driver that will automatically handle the driver registration into the IviConfigurationStore.xml file.

Avoid using "Ivi" in the prefix for an IVI specific drivers. This prefix is reserved for the IVI class drivers.

Thanks!

 

 

0 Kudos
Message 2 of 6
(4,852 Views)

Hi gagi1,

thanks for sequence how to "register" my IVI in MAX.

I'm using CVI 8.0, ICP 2.5.When i create my IVI by Create Specific IVI driver or when i try to create IVI driver based on existing driver and i try to test it i get a message from IVI Specific Driver Test Suite

The driver could not be initialized through the class driver.

Compliance Test was halted.

Error returned: bffa0011

Error Message: Function or method not supported.

When i try to access my driver from CVI it's possible by command IviPok_init, but not over IviDmm_init and that is what i would like to do.

If i try it initialize but IviDmm_init i get an error message: "Function or method not supported".

0 Kudos
Message 3 of 6
(4,828 Views)
Do you see the same issue in the simulation mode? Does your init function contain any additional parameters which are not included in the class function? If you want us to take a closer look at the driver, please send your driver to instrument.drivers@ni.com with the reference to this posting.
 
Thanks,
Vesna
0 Kudos
Message 4 of 6
(4,815 Views)
Hi , I have a similar problem.
I have developed an IVI driver for my device AG1467 sitch matrix module in CVI 8.0. My instrument prefix is my1467_.
I am able to communicate with the device in CVI with the function my1467_InitWithOptions. But when I try to test my dirver with the tool provided with CVI 8.0, in the compliance test I get an error message saying: Could not initialize driver. Function or method not supported.
 
As an addition I observe what is going on in NI spy and see that the error occurs in the IviSwtch_InitWithOptons function. What may be the reasın for that?
 
Thank you.
 
 

Message Edited by meroglu on 11-06-2006 03:31 AM

0 Kudos
Message 5 of 6
(4,782 Views)
Without taking a closer look at the driver, it is hard to guess what is causing the issue. One suggestion would be to make sure that the prefix you are using in the IVI Specific Driver Test Suite is correct. So the correct prefix in your case would be my1467 instead of my1467_. Also, you should check if the my1467_init function is exported in the DLL
0 Kudos
Message 6 of 6
(4,726 Views)