03-14-2013 10:35 PM
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 !