10-04-2005 06:53 AM
10-04-2005 08:14 AM
10-04-2005 08:49 AM
10-04-2005 08:01 PM
10-05-2005 04:36 PM
10-06-2005 09:36 AM
You can report issues with instrument drivers developed by National Instruments by sending an email to:
Please also send an email to this address to request the IVI-COM class driver adapters.
10-06-2005 07:20 PM - edited 10-06-2005 07:20 PM
If your program wants to distinguish IVI-COM and IVI-C drivers you are using, you can access the IVI Config Store contents through the IviConfigServer DLL. Here is a VC++ example that identifies the IVI driver type (COM or C) from a given Logical Name - "MyInstr" in this case.
// Add this line in the stdafx.h
#import "C:\Program Files\IVI\Bin\IviConfigServer.dll" no_namespace named_guids
...
IIviConfigStorePtr spCs;
hr = ::CoCreateInstance(
CLSID_IviConfigStore,
NULL,
CLSCTX_ALL,
IID_IIviConfigStore,
(void**)&spCs);
try {
// Load the master config XML
spCs->Deserialize( spCs->MasterLocation);
// Get interface for the logical name "MyInstr"
IIviLogicalNamePtr spLn = spCs->LogicalNames->Item[L"MyInstr"];
// Get interface for the driver session
IIviDriverSessionPtr spDs = spLn->Session;
// Get interface for the software module
IIviSoftwareModulePtr spSm = spDs->SoftwareModule;
// Acquire the prefix, module-path, progID strings
_bstr_t strPrefix = spSm->Prefix;
_bstr_t strModulePath = spSm->ModulePath;
_bstr_t strProgID = spSm->ProgID;
}
catch( _com_error e) {
}
When IVI-C, you can get a valid ModulePath string such as "<prefix>_32.DLL" and an empty ProgID. When IVI-COM, you can get a valid ProgID string such as "Agilent.<componentidentifier>" and an empty ModulePath. Through the IIviSoftwareModule interface, you can acquire more useful information about the software module associated with the given Logical Name.
このメッセージは 10-07-2005 10:28 AMに Makoto が編集しています。
このメッセージは 10-07-2005 10:28 AMに Makoto が編集しています。
09-16-2009 01:18 AM
09-16-2009 07:17 AM
parthipan,
Go to www.ivifoundation.org and download the IVIConfigurationServer spec (IVI 3.5). Towards the end is a VB6 example of doing what you want.
09-16-2009 07:20 AM
Hi,
I need it in c#
Regards
Parthipan