• Home
  • Privacy policy
  • IVI Foundation
  • Home /
  • Login
  • Sign Up
  • Ask a question
  • Questions
  • Topics
  • Unanswered
  • Recommended
  • Users
  • Badges
avatar image
Question by IVI User · Mar 21, 2014 at 06:49 PM · IVI-COMIVI.NET

How do I access unique instrument functions with IVI-COM and IVI .NET?

Comment

People who like this

0
10 |1000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by JohnHarvey · Mar 28, 2014 at 02:40 PM

There are two ways to instantiate a COM or .NET driver. The answer to this question depends on which you intend to use.

The simplest answer to this question is to instantiate the instrument-specific driver directly, without using any of the class-compliant features of IVI. If you instantiate the driver directly, all of the driver-specific interfaces will be accessible. In this case, you will be limited only by what the driver developers chose to include in the driver. (Many drivers choose to exclude certain items such as calibration or features that assume physical interaction with the instrument.)

If you are trying to write class-compliant code in which two or more compatible instruments that are IVI class-compliant use only the class-compliant interfaces, and can be interchanged, you must configure the instruments and drivers in the IVI configuration store and instantiate the drivers using the session factory (COM) or a class Create() method (.NET). In this case, you are limited to the class-compliant functionality of the driver. However, you can always cast from an IIviDriver reference to the instrument-specific base class of the driver if you are willing to introduce instrument-specific references into your code.

Even if an instrument command is not explicitly supported by the driver, it may still be possible to use the command if the driver supports some form of direct I/O to the instrument, either with basic I/O commands like read/write that the driver implements, or with a direct I/O mechanism that exposes the I/O (such as VISA-COM) that the driver is using to communicate with the instrument. All drivers that are compliant with the IVI-2014 generation of specifications are required to include direct I/O features, and many earlier drivers also support them.

Comment
Joseph Mueller
ToMa

People who like this

2 · Share
10 |1000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

In general why IVI-C, IVI.COM or IVI.NET? 3 Answers

Can I use IVI-COM drivers in LabVIEW? 1 Answer

How to develop a firmware software for my instrument 3 Answers

IVI.NET driver installation path standardized? 5 Answers

If the instrument has both IVI-C and IVI-COM drivers available, how to decide which one to use and on what basis? 1 Answer

Powered by AnswerHub

  • Anonymous
  • Login
  • Create
  • Ask a question
  • Spaces
  • Help
  • Explore
  • Topics
  • Questions
  • Users
  • Badges