Installing and Configuring VNMR for MATLAB

The following instructions detail the recommended procedure to install the Virtual NMR Spectrometer (VNMR) ver 3.5 on your computer. It is assumed that MATLAB (version 5 or higher) has been installed already. Simply follow these steps:
  1. Decide upon a location for the VNMR files (for example 'c:\mymatlab' directory). If this directory does not exist, create it.
  2. Save the attached vnmr_35.zip (or vnmr_35.tar.gz -- for Unix/Linux) file in a temp directory. Unzip/untar it and copy the folder VS to the location you have chosen (you can save space and effort by unzipping the zipped file directly into this directory). Please keep in mind that file vnmr_35.zip was compressed using WinZip (Windows); file vnmr_35.tar.gz (Unix) should be first unzipped using gunzip and then un-tarred. A properly unzipped and copied VS folder must contain the following (sub)folders and files:
  3. Now you have to make an executable for the VNMR TRANSLATOR. You will have to make it only once, when you install the VNMR package. Follow these steps:

That's it! Now you are ready to launch the simulator:

  1. Launch MATLAB.
  2. In the Matlab window navigate to your VS directory.
  3. Launch the Virtual Spectrometer by typing: vsnmr at the Matlab prompt (>>). The VNMR Main Window will appear on the screen.
  4. Enjoy VNMR!

A note to users working on multiple-user computers (e.g. workstations, classrooms, etc.):
It is highly recommended that each individual user copies VNMR into his/her own directory and works in this directory. If this is not possible, you will need to create your own working sub-directories, to avoid confusion resulting from some critical files being overwritten by other users. For this purpose we have also provided a Matlab function addUser.m. Here is what you will have to do:
After you launched VSNMR, go to the Matlab window and at the Matlab prompt type:

addUser('username')

where you have to substitute username with your name or any combination of letters and/or numbers that could uniquely identify you from other users. This command automatically creates several subdirectories with this name (if these don't exist) in the xlatedir and vs_pp folders and creates a path to them in the Matlab memory. Make sure you have the write permission for the directories xlatedir and vs_pp. These user-specified subdiractories will not be deleted when your VSNMR session is over and could be used next time you start VSNMR. Repeat this command every time you launch a new VNMR session, to tell Matlab what personal directories to use.
BACK TO VNMR MANUAL
Back to top

Last modified by David Fushman 12/28/2003.
(c) Copyright 2003 by David Fushman, University of Maryland.