Manually Resetting the MAX Database

Updated Jun 5, 2018

Reported In

Software

  • Measurement and Automation Explorer (MAX)

Operating System

  • Windows

Issue Details

I have one of the following issues:
  • I cannot open NI Measurement & Automation Explorer (NI MAX)
  • I get timeout errors after about 10 minutes
  • I think my MAX Database is corrupted
  • My PXI(e) cards are enumerating as Dev# instead of PXI1Slot#
  • My PXI(e) cards are enumerating in the incorrect order
  • ERROR niGPIBsys.dll plug-in 022718.txt
  • My program gets stuck at startup while loading the plug-ins

Solution

If you are using NI Measurement & Automation Explorer (NI MAX) version 5.0 or later and can get MAX to open, follow the steps in this guide to reset the database automatically. You can also perform it manually with the following steps:
  1. Exit all NI applications. Make sure all firewall software (such as F-Secure, Norton, ZoneAlarm, etc.) is disabled during this procedure. This is particularly important in Windows Vista, 7, or 10.
  2. Stop the MAX database service:
  • On Windows XP and Windows 2000:
    1. Select Run... from the Windows Start menu.
    2. Type cmd, and click OK.
    3. In the command prompt, type net stop mxssvr and press Enter to stop the MAX database service. If you are prompted to stop other services, stop them.
    4. Type exit and press Enter to close the command window.
  • On Windows Vista, 7, or 10:
    1. Select Programs » Accessories from the Windows Start menu.
    2. Right click Command Prompt and select Run as administrator. If the command prompt is run without administrator privileges, you will receive System error 5 has occurred. Access is denied.
    3. Type net stop mxssvr and press Enter to stop the MAX database service. If you are prompted to stop other services, stop them.
    4. Type exit and press Enter to close the command prompt window.
Note: If you are unable to stop the MAX database service, remove National Instruments software from your System Configuration Startup: 
  1. Select Run... from the Windows Start menu.
  2. Type msconfig, and click OK.
  3. Navigate to the Startup tab.
  4. Deselect NI Update Service and NIDEVMON from the list.
  5. Click Apply, then click OK.
  6. Reboot your computer and start with Step 1.
  1. Find the Last folder:
  • On Windows XP and Windows 2000:
  1. Navigate to C:\Documents and Settings\All Users\Application Data\National Instruments\MAX\Data Dictionaries\Last
  2. The Application Data folder is hidden by default. To view hidden folders, select Tools » Folder Options..., then click the View tab.
  3. Select Show hidden files and folders.
  • On Windows Vista, 7, or 10:
  1. Navigate to C:\ProgramData\National Instruments\MAX\Data Dictionaries\Last
  2. If this folder is not shown, go to the menu bar in the C: directory and choose Organize » Folder and Search Options, then click the View tab.
  3. Select the Show hidden files and folders option.
  4. Deselect the Hide protected Operating System files option.
  1. Create a backup copy of the Last folder, and store it in another location. 
  2. Find the Data folder:
  • On Windows XP and Windows 2000:  Navigate to C:\Documents and Settings\All Users\Application Data\National Instruments\MAX\Data\
  • On Windows Vista, 7, or 10:  Navigate to C:\ProgramData\National Instruments\MAX\Data
  1. Create a backup copy of the Data folder, and store it in another location. 
  2. Open the original Data folder and find the file named config3.mxs.bak. Check this file's creation/modification time by right-clicking on the file and choosing Properties. The General tab will list the time it was created and the time it was last modified. If the file is dated such that it would contain your recent configuration settings, continue with the following steps to attempt to recover a valid backup of your configuration. If the file is too old to contain relevant configuration information, or if config3.mxs.bak is the same size as config3.mxs, simply delete the entire Data folder and skip to Step 10. 
Note: Deleting the Data folder in its entirety will remove all MAX configuration settings.
  1. In the MAX\Data folder, delete the file named config3.mxs or save it with a different name. Do the same for any of these files if they exist in the Data folder: config3.mxc, config3.mxd, config3.mx5, and storage.mxc.
Note: If you are unable to delete the Data folder you can restart your computer in Safe Mode and then delete the folder.                                                                        
  1. Rename config3.mxs.bak to config3.mxs.
  2. Reboot your computer. 
  3. Start MAX. It should launch with the configuration information that was stored as a backup if you did not completely delete the Data folder. Otherwise, MAX will be restored to its default configuration.
Note: Once the MAX database service is working, reset the  National Instruments software in your System Configuration Startup: 
  1. Select Run... from the Windows Start menu.
  2. Type msconfig, and click OK.
  3. Navigate to the Startup tab.
  4. Select NI Update Service and NIDEVMON from the list.
  5. Click Apply, then click OK.
  6. The changes will apply when you reboot your computer
  1. If reverting to the back-up version of your MAX database does not resolve this error, please send your original corrupt Last and Data folders along with a MAX Support Report to NI Technical Support. You can create this report in MAX by following the steps outlined in Using MAX Technical Report to Document Measurement & Automation Explorer (MAX) Configuration Information.

WAS THIS ARTICLE HELPFUL?

Not Helpful