Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 5 out of 5     Rate this Document

Measurement Studio Compatibility with the Data Execution Prevention (DEP) Setting on Windows Vista

Primary Software: Measurement Studio>>Enterprise Edition (Full Development System)
Primary Software Version: 8.5
Primary Software Fixed Version: N/A
Secondary Software: Driver Software>>NI-DAQmx, Driver Software>>NI-VISA

Problem:
Are there any issues associated with Measurement Studio support for Visual Studio 2008 and the Data Execution Prevention (DEP) Setting on Windows Vista?

Solution:
Measurement Studio does not support using the DAQ or VISA Add New Item or New Project wizards on a machine with Data Execution Prevention (DEP) enabled. By default, DEP is enabled in Windows Vista.

If DEP is enabled on your machine and you attempt to use the DAQ or VISA Add New Item or New Project wizards, a message will appear indicating that you need to disable DEP. To disable DEP on the system, run the following command on the command line and then reboot the machine.

bcdedit.exe /set {current} nx AlwaysOff

To restore DEP to the default setting, run the following command on the command line:

bcdedit.exe /set {current} nx Optin

For more information, refer to Microsoft MSDN Library documentation for the nx parameter of the BCDEdit /set command.

Caution The AlwaysOff option disables DEP on all processes running on the machine. Disabling DEP can make your system more vulnerable to malicious software.

This issue does not affect your ability to use the DAQmx or VisaNS API class libraries. It only affects your ability to use the Assistants within the Visual Studio 2008 development environment. You can use NI Measurement & Automation Explorer to create and configure DAQmx Tasks and use those tasks with the DAQmx class library.

National Instruments is working to correct this problem, but there is currently no fix available.



Related Links: MSDN: BCDEdit /set

Attachments:





Report Date: 03/13/2008
Last Updated: 05/23/2008
Document ID: 4JCEP86S

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit