Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5661

IVI - Errors when using GetSpecifiDriverCHandle

$
0
0

Hello,

i created a C++ DLL for the IviDmm class and i am calling the Keysight 34980 ivi driver. This custom C++ Dll contains all generic functions of IviDMM and is working fine..

Now i wanted to run a specific function of the 34980A-driver. For this execute "iviDMM_GetSpecifiDriverCHandle" which returns a numeric handle without error.

 

Then i run a function of another custom C++ DLL where i call some specific functions.

For example:

viStatus = Ag34980a_SetAttributeViBoolean (Vi, Channel, AG34980A_ATTR_OUTPUT_STATE, State);

 

For the parameter "Vi" i pass the specificDriverCHandle that was created by the other DLL.

 

But the function returns:

-1074135040 = Failure cannot recover.

 

What is the error here?

Same error occurs also in Simulation mode

Thanks

 

NI MAX 16.0.0f0

ICP 16.0.1

IviSharedComponents 242
Driver setup in MAX: DMM=true, slot1=34932A, slot2=34932A, slot3=34932A, slot4=34932A, slot6=34941A, slot8=34937A

Keysight driver: 1.5.7.0

 

 


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>