The viOpen command below results in a fatal error when i run a relatively simple program
/*- Open instrument session ---------------------------------------------*/
if ((Connect_status = viOpenDefaultRM (&rmSession)) < 0)
return Connect_status;
if ((Connect_status = viOpen (rmSession, "GPIB0::8::INSTR", VI_NULL, VI_NULL, (ViPSession)i_Session)) < 0) {
viClose (rmSession);
return Connect_status;
}
The error is
FATAL RUN-TIME ERROR: "gpibrw.c", line 64, col 35, thread id 0x00000588: The program has caused a 'General Protection' fault at 001B:631431C4.
It was initially causing my own program to crash, but i've since copied those lines into the NI GPIB demo code. Same result.
Using LabWindows 8.0.1 (356) on Windows XP SP1
Visa drivers are installed - the manufacturer's program has no trouble communicating with the device. However with the code above (which works fine on older installations i'm assured), i can't open the visa session.
Any help welcome.
Regards,
Andrew