Re: CIN Code crashing LabView - "(MSVCRT.DLL): 0xC0000096: Privileged Instruction? Error
- From: "Tim J." <timjor19@xxxxxxxxxxxxx>
- Date: Tue, 24 Jan 2006 22:01:01 -0600
Most likely you will run into this sort of problem due to WinXP not allowing direct access to the hardware. You have to go through drivers.
There is a util out on the web that is free that lets you 'forward' direct hardware requests sort of like packet forwarding in networking.
Sorry, I dont remember the site I downloaded it from due to misplaced the file when I did a spring cleaning of my drives.
Tim J>
rolfk wrote:
tomaso wrote:
I am trying to create a Code Interface Node for a LabView 7.1 code that is supposed to run on a Windows XP PRO machine. I
have modified an older C source code for the CIN that was running under
Windows98. LabView crashes on the subVI containing the CIN. The CIN reads from a device using _inpw and _inpd commands. The error message ?Debug? button leads me to ?LabView ? Microsoft Visual C++[run] ? [Disassembly]?. This opens with an error message ?Unhandled exception in LabView.exe (MSVCRT.DLL): 0xC0000096: Privileged Instruction?. Does anyone have any clue? inp(w)
and out(w) are privileged CPU instruction codes and a user application
is normally not allowed to execute them under any Windows NT type
OS (this includes NT 3, 4, W2K, XP, 2003).
You should instead look into using the InPort and OutPort VIs rewriting your CIN using these VIs in LabVIEW.
Alternatively you could look into the PortIO library provided on OpenG. The device driver in there has the ability to selectively allow specific IO addresses to be accessed from the user level mode. But this type of programming is not for the faint of the heart. If you do something wrong you can easily crash your computer or possibly even destroy something.
Rolf KalbermatterMessage Edited by rolfk on 01-01-2006 03:21 PM
.
- Follow-Ups:
- References:
- Prev by Date: Re: How to receive WM_USER messages from other applications in LabVIEW
- Next by Date: Re: Processing acquired data for a medical application (Epilepsy)
- Previous by thread: Re: CIN Code crashing LabView - "(MSVCRT.DLL): 0xC0000096: Privileged Instruction? Error
- Next by thread: Re: CIN Code crashing LabView - "(MSVCRT.DLL): 0xC0000096: Privileged
- Index(es):
Relevant Pages
|