Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use IVI-COM drivers in my IVI-C basd application

I have written an IVI-C based interchangable application for Spectrum Analyzer and signal generators but I found out that our new FSL-6 Rhode & Schwraz has only IVI-COM and no IVI-C. It also seems that NI is not providing Adapters for IVI-COM on spectrum analayzer class so I am not abale to use MAX either. I am wondering how can I use the IVI-COM drivers in my application.

 

Basically I was hoping the Adapters would help and now hoping to use wrappers for the IVI-COM drivers. Can someone give me a hint how to proceed with this and how to write wrappers or how to use the IVI-COM in my application?

0 Kudos
Message 1 of 8
(5,388 Views)

Zeino,

 

IVI-COM Adapters for Spectrum Analyzers are included in ICP 3.3 distribution. You do need to enable them in the feature tree during installation.

Message 2 of 8
(5,373 Views)

What gagi1 says is true! :smileyhappy:

 

IVI-C Class Driver Support for IVI-COM Specific Drivers

---

Peter Flores
Applications Engineer
Message 3 of 8
(5,365 Views)
Thanks for the info. I Didn't have my adapters enabled and reading some posts I thought there are  only 5 classes that  have adapters.
0 Kudos
Message 4 of 8
(5,358 Views)

My IVI-C doesn't work and says function or method not supported! on InitWithOption call!

 

I installed my RsSpecAn IVI-COM driver again and meanwhile closed the MAX so that the configuration store is oly set by one of them.  When comparing the software driver with the page NATAN have shown in: I see that my driver doesn't have a prefix and only has ProgID. From another post I know that ProgID is for COM dirvers and Prefix is set in IVI-C drivers.

 

My Question is  if the adapters are sensed with MAX should my COM driver also have a prefix set beside its ProgID? Should I set anything specific?

 

http://forums.ni.com/ni/board/message?board.id=140&thread.id=31369&view=by_date_ascending&page=1

 

I haven't yet tested the COM driver by itself as has been suggested.

0 Kudos
Message 5 of 8
(5,354 Views)

Hello Zeino,

        I don't believe that you need a prefix in your IVI COM Specific Driver SW module.  Just make sure that you create a driver session that references the SW module and also references your hardware (make sure to check the checkbox next to your hardware).

 

Cheers,

 

NathanT

 

p.s.  Some IVI-COM instrument specific drivers include an IVI-C wrapper which allows you to just treat it like an IVI-C instrument driver.

Message 6 of 8
(5,308 Views)

Thanks NatanT,

I think the problem is in the IVI-COM driver that I have for FSL. As you had suggested in another link I tesed the individual driver and it was not working when used directly either. My IVI-C from NI  drivers are fine and I think I did everything right in MAX.

 

The good thing that came out of this was that we are now shifting to Labview and Teststand after failing in IVI. It seems Labview drivers are better supported by Vendors.

0 Kudos
Message 7 of 8
(5,301 Views)

Hello Zeino,

        I am sorry to hear that the IVI-COM driver did not work correctly when you tested it, but I am glad that you tested it directly.  To use the Specific Driver interface of the IVI-COM driver, you should only have to configure the instrument's VISA resource in MAX (or another configuration utility), and not configure any IVI settings.

 

Good luck with your application,

 

NathanT

0 Kudos
Message 8 of 8
(5,282 Views)