LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

En counting general protection with IVI driver

 

Hi guys,

 

I've installed the Keithley_2100_IVI_Driver_1.0.0.zip to run my 2110 Keithley DMM. (http://www.keithley.nl/base_download?dassetid=57076)

 

I’ve tried turning on the device in CVI via a simulator mode and it gives a “General Protection error”

 

Below is my code:

 

 

#include <cvirte.h>

#include "Ke2100.h"

static ViReal64 reading;

 

static ViSession session;

 

int main (int argc, char *argv[])

{

            if (InitCVIRTE (0, argv, 0) == 0)

                        return -1;    /* out of memory */

           

            Ke2100_InitWithOptions("MyLogicalName", VI_TRUE, VI_TRUE, "Simulate=true, DriverSetup= Model=MODEL 2100", &session);

           

            Ke2100_ConfigureMeasurement (session, KE2100_VAL_DC_VOLTS, 10, 0.1);

           

            Ke2100_ConfigureTrigger (session, KE2100_VAL_IMMEDIATE, 0.01);

             

            Ke2100_Read (session, 50, &reading);

           

            return 0;

}

 

It gives an error  as below for the highlighted line

 

“FATAL RUN-TIME ERROR:   "Source File.c", line 17, col 5, thread id 0x00000C98:   The program has caused a 'General Protection' fault at 0x1002D3AB.”

 

When I check the thread id it points to ----> Ke2100.dll.

 

 

It seems to me that the driver is not recognizing the simulation driver. Am i doing something wrong or the driver just plainly does not support simulation runs? The examples stated a few simulation examples hence i think it should work !

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