Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

IVI COM with ADA

Hello guys
 
I have a software in ADA langueage that use IVI-C to connect different instrumentos using IVI-Class instrumentos of NI dll. I have made the binding for the headers files and its run correctly.
 
My problem is with IVI-COM, i create a Instance with SessionFactory in ADA, but i dont know how to convert it en an instruments object (IVIDCPWR for example).
I convert the type directle and the Add_Ref and Release methods runs correctly, but when i call Initialize method to connect to the instrument, i have a exception
 
raised PROGRAM_ERROR : EXCEPTION_ACCESS_VIOLATION
 
Anybody can help me? please
 
thanks
0 Kudos
Message 1 of 16
(6,166 Views)
Hello Geodo,
         What specific instrument models are you using the IVI-COM drivers for?  If you want to use the IVI-C Class Drivers, you should use the IVI-C Instrument Specific Drivers for your instruments (if they are available).  If not, you should enable the IVI-COM Adapters when installing the IVI Compliance Package.  Here is a KB about the IVI-COM Adapters.

Cheers,

NathanT
0 Kudos
Message 2 of 16
(6,160 Views)

Hello Nathan

If i use IVI-COM Adapters, i can use IVI-C functions to control IVI-COM drivers???

Thanks

0 Kudos
Message 3 of 16
(6,145 Views)
Hello Geodo,
        The IVI-COM Adapters allow you to use the IVI-C Class Drivers with IVI-COM Specific Drivers.  Did you have a chance to read the KB that I provided a link to?

Thanks,

Nathan
0 Kudos
Message 4 of 16
(6,120 Views)

Hello Nathan

 

Yes i have readen the KB, but i don't find more information about IVI-COM adapter and i don't know how to use it.

What i need to do to use IVI-COM Adapters???

0 Kudos
Message 5 of 16
(6,113 Views)
Hello Geodo,
         Remember, if there is an IVI-C Specific Driver for your instrument, you should use that first.  There is an IVI-C Specific Driver for your 6700.  Are you using any other instruments that don't have an IVI-C Specific Driver?

         To use the IVI-COM Adapters, you need to have the IVI-COM specific driver session correctly configured (I recommend using MAX).  Some IVI-COM Specific driver installers will add a driver session, some will require you to create a new one.  It is very important to make sure that the IVI-COM Specific Driver works by itself before trying to use it through the COM Adapters.

          The main thing that is different in the configuration of an IVI-COM Driver session is the software tab of the driver session and the settings of the software module.  You can try installing the 34401 IVI-COM driver from Agilent's website and looking at the settings to get an idea of what your other driver settings should be.

Cheers,

NathanT
0 Kudos
Message 6 of 16
(6,094 Views)

Hi Nathan

The 6700 is only an example, i want an applications that can interchange all ivi drivers (IVI COM or IVI C).

 

I have installed 34401 driver, but i see my config store and there is not a new driver session created by it software module. How can i see the settings??

 

Thanks 

 

 

0 Kudos
Message 7 of 16
(6,084 Views)

Hi Nathan

 

Its curious, but i have an application in ADA, using IVI-C (bindings of headers), and i probe using a intruments that use ivi-com driver (Agilent661xx)

 

and its running correctly (only, a method is not supported) and i don`t have dome anything to adapter IVI-COM

 

And other IVI-COM driver dont runs

 

 

0 Kudos
Message 8 of 16
(6,074 Views)
Hello Geodo,
        You will probably need to refresh MAX.  I generally just close MAX when I am installing IVI Specific Drivers so there is not any confusion on  which program updated the Config Store last.  I have attached screenshots of the 34401 COM driver installed on my system.

Cheers,

NathanT




Message Edited by NathanT on 08-07-2008 08:36 AM
Download All
0 Kudos
Message 9 of 16
(6,061 Views)

Hi Nathan

I see a new software module for Agilent3401, but its not give me informations about how to use the IVI-COM Adapters.

I think that i shouldn't change the software modules?

My questions is, if i have to include at my software the ivicomadapterer dll like i include the ivic dll, or i have to include other file ¿¿¿????

How i say you in the past post, i have an ivicom driver which run with ivic functions (only a functions is not supported), and its only ivi-com, dont have an ivic dll...

And there's other ivicom drivers that dont run

Im confused

 

Thanks

0 Kudos
Message 10 of 16
(6,041 Views)