Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

0xC0000096: Privileged instruction error

Hi,
 
I am developing an application in 'Visual C++ 2005 Express' that controls a DAQCard 6715 board. I am making use of the 'Config_DAQ_Event_Message' to update the voltage values in the board every half buffer. My application is able to go through the callback function that raises the event once, but then gives the following error:
 
Unhandled exception at 0x0520ffb4 in HRDCP Modulator.exe: 0xC0000096: Privileged instruction.
 
I have used this functionality in the past with Visual C++ 6.0, but I had to move to the .NET environment in order to incorporate some libraries.
 
Any idea how to solve this exception?
 
Thanks in advance,
 
Toni
0 Kudos
Message 1 of 4
(7,577 Views)
Toni,

DAQmx 8.0 should work with Visual Studio .NET 2005 if you have installed the .NET Framework-support during the installation of the DAQmx. Nevertheless, there is a third-party-wrapper for DAQmx for VStudio 2005 Express. You can download that here.
Please note that i am not sure for which version of DAQmx this wrapper is designed and that NI does not support this wrapper.

Norbert B.
NI Germany

[Edit]: Adding the link lost all formation of the text.....

Message Edited by Norbert B on 01-12-2006 10:17 AM

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 4
(7,563 Views)

Thanks Norbert,

I have been using NI-DAQ Traditional to make use of the 'Double buffer' and 'DAQ Event messages' features, so I don't know if wrapping my DAQmx files with the application you suggested it is going to do anything at all to the NI-DAQ Traditional functions. Aren't NI-DAQ and DAQmx two different sets of libraries? May be the solution would be to use DAQmx only?

Thanks in advance,

Toni

0 Kudos
Message 3 of 4
(7,554 Views)
Toni,

surely the wrapper does not work for trad. NI-DAQ. Because trad. DAQ is not developed any further, i doubt that it is tested with .NET 2005 Express and therefore not supported.
Since DAQmx seems to need an extra wrapper for 2005 Express, i think that trad. DAQ will not work anyways.
All in all i would advice you to use DAQmx, because DAQmx is the new driver which will be supported within all neccessary new software developement enviroments.


Norbert B.
NI Germany
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 4
(7,538 Views)