Hi Spencer,
I set up Read Dig Port and compiled it, calling the Configure, Start, Read, and Stop functions. It compiles without error, but during run time (with the debugger) it gives me the following error:
"Unhandled exception at 0x00fa1d97 in VC_ReadDigPort.exe: 0xC0000096: Privileged instruction."
This error occurs right after I call the Configure function in the following line of code in Configure_ReadDigPort in ReadDigPort_Fn.c:
"DAQmxErrChk (DAQmxCreateDIChan(*taskHandle,chan,"",DAQmx_Val_ChanForAllLines));"
This kills the running of the program where it is.
I think the problem may be arising because I'm running the program in Visual C++ .Net rather than Visual C++ 6.0. Please advise on how to set or get the privilege so
that this error does not occur.
I'm attaching the code (I've modified the main function to include the Configure, Start, Read, and Stop functions, and to access my device, NI6514).