Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

IviSwtch Compliance Test IVI Specific Driver in CVI crashing

Solved!
Go to solution

I have problem with IviSwtch Specific driver. I have finished all code for this driver and try to test in CVI tool called "Test IVI Specific Driver". Structure and Function panel test runs without any error. Problem is with Compliance test which returns:

 

the driver could not be initialized through the class driver.

Compliance Test was halted.
Error returned: bffa0011
Error Message: Function or method not supported.

 

I tried to add exports to dll in according to this solution http://digital.ni.com/public.nsf/allkb/1DCA138862E75119862576C5006EA144

After doing this Compliance test just crashing and I have to close it down. 

 

Does anybody met this kind of problem? I would be grateful for any help.

 

Regards

Tomasz

0 Kudos
Message 1 of 5
(5,197 Views)
Why don't you attach your code?
0 Kudos
Message 2 of 5
(5,189 Views)

I already deal with this problem. First of all I hadn't installed NI VISA. Second issue is to add exports to dll file. Now test run correctly but I still have some concerns. 

 

At Behavior test I have one error:

 

The DLL version format is valid.

ERROR: The DLL version is inconsistent with the version in the header file.

All attributes have correct names.

All attributes have correct data types.

 

At Compliance test I have one error:

 

ERROR: The driver is not compliant with the Inherent group because:

-The following Inherent attributes are not implemented:

INSTRUMENT_MANUFACTURER
INSTRUMENT_MODEL

 

Of course I have defined those attributes as well as all inherent attributes so I don't know why this errror.

0 Kudos
Message 3 of 5
(5,160 Views)
Solution
Accepted by topic author tomek123

>>The DLL version format is valid.

ERROR: The DLL version is inconsistent with the version in the header file.

All attributes have correct names.

All attributes have correct data types.

 

This error means the revision of the generated <driver_prefix>.dll does not match the Major and Minor version defined in header. This should not be a conern if you will not release the driver to customers and you take care of revision.

 

 

>>ERROR: The driver is not c>ompliant with the Inherent group because:

-The following Inherent attributes are not implemented:

INSTRUMENT_MANUFACTURER
INSTRUMENT_MODEL

 

It is hard to tell the root reason of this issue, but there might be something doesn't work in your code. How about post these attributions' definition? OR send your project to  instrument.drivers@ni.com. I think NI could help to take a look into it.

 

Thanks,

Charles

0 Kudos
Message 4 of 5
(5,148 Views)

Thank you for answer. About dll error your post was very helpful. Inherent attributes problem error resolved by itself, after restarting computer error don't show anymore.

 

Regards

Tomek

0 Kudos
Message 5 of 5
(5,110 Views)