Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5357

ViSession instrument object handle gets converted to unsigned int

$
0
0

In executable mode the instruments handle is passed around the functions in a string state in (view variable window)

The commands work.

 

When packaged to a dll. the instrument handle is created, but when it is passed to the next function call it is changed to an unsigned int and i get a general protection error.

The function will not work.

RSPD3303C_err = RSPD3303C_Init ("USB0::0x0483::0x7540::NPD3ECAD2R0396::INSTR",&RSPD3303C_obj) ;

RSPD3303C_obj  = USB0::0x0483::0x7540::NPD3ECAD2R0396::INSTR

 

RSPD3303C_obj  = 49138040

RSPD3303C_SET_CURRENT_source (ViSession vi,ViInt32 CH, ViReal64 value);

 

 


Viewing all articles
Browse latest Browse all 5357


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