01-01-2006 03:21 AM
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?
01-01-2006 08:16 AM - edited 01-01-2006 08:16 AM
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).
@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?
Message Edited by rolfk on 01-01-2006 03:21 PM
01-24-2006 10:11 PM
01-25-2006 02:19 AM - edited 01-25-2006 02:19 AM
There are several routines and libraries out there to do port access under protected Windows environments (NT and higher).
@Tim J. wrote:
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.
Message Edited by rolfk on 01-25-2006 09:20 AM