Contact an Expert

Thread: Programmatically accessing the IVI configuration store


Permlink Replies: 5 - Pages: 1 - Last Post: Aug 8, 2010 10:06 PM Last Post By: odanzy Threads: [ Previous | Next ]
gsonnenf

Posts: 7
Registered: 07/10/10
Programmatically accessing the IVI configuration store
Posted: Jul 10, 2010 8:20 AM
Click to report abuse...   Click to reply to this thread Reply
Hello,

I was wondering how I could get my code access to the IVI configuration store. The IVI foundation docs haven't really been helpful.

I'm pretty sure it has something to do with Ivi.configserver.Interop. I'm also running agilent connection expert.

What I'm trying to do is either check the logical name of a instrument address or query for all instruments registered with the configuration store.

Does anyone know how to do this?
dnt

Posts: 223
Registered: 02/15/06
Re: Programmatically accessing the IVI configuration store
Posted: Jul 19, 2010 2:25 PM   in response to: gsonnenf in response to: gsonnenf
Click to report abuse...   Click to reply to this thread Reply
The IVI help page shows this property that may help:

IIviDriverIdentity.SupportedInstrumentModels Property
A comma-separated list of instrument models that the IVI specific driver can control. The string does not include an abbreviation for the manufacturer if it is the same for all models.

Visual Basic
Property Get SupportedInstrumentModels() As String
C++
HRESULT get_SupportedInstrumentModels(BSTR* value);
ANSI C
HRESULT IIviDriverIdentity_get_SupportedInstrumentModels(IIviDriverIdentity* This, BSTR* value);
C#
public string SupportedInstrumentModels {get;}
gsonnenf

Posts: 7
Registered: 07/10/10
Re: Programmatically accessing the IVI configuration store
Posted: Jul 20, 2010 11:32 AM   in response to: gsonnenf in response to: gsonnenf
Click to report abuse...   Click to reply to this thread Reply
AH, that is neat. What I'm really trying to do is have my software figure out what instruments are connected to the computer, query their logical names or addresses, at runtime, so the user select the appropriate instrument.
dnt

Posts: 223
Registered: 02/15/06
Re: Programmatically accessing the IVI configuration store
Posted: Aug 6, 2010 5:45 PM   in response to: gsonnenf in response to: gsonnenf
Click to report abuse...   Click to reply to this thread Reply
I think this is better done at the VISA level.
gsonnenf

Posts: 7
Registered: 07/10/10
Re: Programmatically accessing the IVI configuration store
Posted: Aug 8, 2010 8:36 AM   in response to: gsonnenf in response to: gsonnenf
Click to report abuse...   Click to reply to this thread Reply
Hello,

I know how to do this at the VISA level, and will use that (reducing functionality in my program) if I can't figure it out on the IVI level.

Though I would much prefer to do it on the IVI level. Thats why the IVI configuration store is there, for programmers to access it.
odanzy

Posts: 1,543
Registered: 11/16/05
Re: Programmatically accessing the IVI configuration store
Posted: Aug 8, 2010 10:06 PM   in response to: gsonnenf in response to: gsonnenf
Click to report abuse...   Click to reply to this thread Reply
From everything I've seen, the addresses, driver types, and logical names are already known before you would begin modifying the IVI Configuration Store. You could use VISA (viFindRsrc) or VISA-COM (IResourceManager::FindRsrc) to find out what is out there and then viParseRsrc/viParseRsrcEx or IResourceManager::ParseRsrc to determine more information about the instrument. Once you have that information, you could either add it to the configuration store or just use it to open a session to the instrument.

Some vendor classes in IVI drivers have properties that will reference back to the VISA-COM implementation, so you could do the search there but I don't think this was part of the IVI Driver standard utility functionality.

For further reference on modifying the configuration store, attached is an old White Paper that came from the old Agilent Developer's Network site.

Point your RSS reader here for a feed of the latest messages in all forums