Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.

ke_2450 driver crashes in simulation mode

Models 2400, 2401, 2410, 2420, 2425, 2430, 2440, 6430
Post Reply
uvonceumern
Posts: 2
Joined: October 30th, 2018, 1:03 am
Country: Germany

ke_2450 driver crashes in simulation mode

Post by uvonceumern » October 30th, 2018, 1:13 am

I installed the IVI-C/IVI-COM driver package for the SMU 2461 as well as the required IVI, VISA and NI packages.

I set up a small example to load the driver in simulation mode and it crashes as soon as I try to send a trigger abort.

Code: Select all

// init with simulation mode on
IviDCPwr_InitWithOptions(const_cast<ViRsrc>(logicalName.c_str()), VI_TRUE, VI_TRUE, "Simulate=VI_TRUE", &vi);
// this works:
IviDCPwr_self_test(vi, &selfTestResult, selfTestMessage);
// this crashes:
IviDCPwr_Abort(vi);
To understand what was going on I made the effort and compiled the driver with debug information and the crash happens here:

Code: Select all

inline HRESULT CIoSession::WriteStringNoPoll(const CString& strData, bool bFlush, long lTimeout)
{
	if (!Initialized()) return m_pErrReporter->NotInitialized();
...
Unhandled exception thrown: read access violation.
this->**m_pErrReporter** was nullptr. occurred
Apparently m_pErrReporter is null. It seems like it is never initialized when simulation is enabled.

Surely this is not intended behavior? Please advice.

uvonceumern
Posts: 2
Joined: October 30th, 2018, 1:03 am
Country: Germany

Re: ke_2450 driver crashes in simulation mode

Post by uvonceumern » November 9th, 2018, 2:29 am

BUMP, any chance I could get an answer from the team?

Post Reply

Return to “2400 Series SourceMeter”

Who is online

Users browsing this forum: No registered users and 2 guests