02-20-2020 07:00 AM
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);
09-10-2020 04:57 AM
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