From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ViSession instrument object handle gets converted to unsigned int

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);

 

 

0 Kudos
Message 1 of 2
(1,710 Views)

Hey Slten,

Hope you're well - I appreciate this has been unanswered for a long time so I thought I'd chime in.

It looks like the RSPD3303C is a DC Power Supply so I'd guess that the errors are very code specific. 

 

Did you ever make progress on this?

 

Cheers,

Nick

0 Kudos
Message 2 of 2
(1,472 Views)