Matlab

Discussion in 'Windows Virtual Machine' started by RenP, Oct 19, 2010.

  1. RenP

    RenP Bit poster

    Messages:
    1
    Hi,

    Im running paralles on my mac, because i need to use MATLAB for windows for school. When I try and run it, the first thing that comes up is this:

    "Warning: Could not get change notification handle for remote
    \\.psf\Home\Documents\MATLAB.
    This file server does not appear to support change notification.
    Type 'help changeNotification' for more info. "

    Once I get more info, this comes up

    MATLAB makes use of a feature of the Windows operating system called a
    Change Notification Handle that enables MATLAB to be notified any time
    a file in an associated directory is modified. Under certain
    circumstances, Windows may fail to provide MATLAB with a valid and
    responsive handle. The three most common causes for this are:

    * Windows has exhausted its supply of notification handles

    * The specified directory resides on a file system that does not support
    change notification. The Syntax TAS fileserver software, the freely
    distributed SAMBA fileserver, and many NFS fileservers are known to
    have this limitation.

    * Network or fileserver latency delays the arrival of the change
    notification so that changes are not detected on a timely basis.

    When MATLAB is unable to obtain a responsive Change Notification Handle,
    it cannot automatically detect changes to directories and files.
    For example, new functions added to an affected directory might not be
    visible, and changed functions in memory might not be reloaded.

    If the file system is one which supports UNIX-style directory timestamp
    updates (that is, the directory timestamp is updated when a file is
    added to the directory), you can place one or both of the following
    commands at the beginning of your matlabrc.m file to tell MATLAB to
    detect changes by testing the timestamps of the directories:

    system_dependent('RemotePathPolicy', 'TimecheckDirFile');
    system_dependent('RemoteCWDPolicy', 'TimecheckDirFile');

    While changes will now be detected, you may notice a performance
    degradation due to the time required to check the timestamps.

    If the file system is one (such as an NT file system) which does not
    support UNIX-style directory timestamp updates, you can place one or both
    of the following commands at the beginning of your matlabrc.m file to
    force MATLAB to detect changes by rereading the affected directories
    at frequent intervals:

    system_dependent('RemotePathPolicy', 'Reload');
    system_dependent('RemoteCWDPolicy', 'Reload');

    While changes will now be detected, you may notice a significant
    performance degradation due to the time required to reread the
    directories.

    There may be periods when problems related to remote file system caching
    or network latency can keep any of the above measures from being effective.
    If MATLAB is still unable to detect changes you have made to an M-file,
    you will need to clear the old copy of the function from memory using
    CLEAR function_name. Invoke the function again, and MATLAB will read
    the updated function from the M-file.

    If you prefer never to see warning messages about change notification,
    place the following command at the beginning of your matlabrc.m file
    to suppress all of these warnings:

    system_dependent('DirChangeHandleWarn', 'Never');

    Furhtermore I went to the MATLAB website for support and did the following:

    http://support.microsoft.com/kb/926646

    To no avail.

    Any help would be greatly appreciated
     
  2. Matthew C Roberts

    Matthew C Roberts Bit poster

    Messages:
    2
    What is your problem, exactly? This is very normal using Parallels, and it won't affect your ability to run Matlab code. Basically, it will force Matlab to recompile all of your m-code to byte code each run because Matlab has trouble figuring out whether your m code has changed.

    If you want to avoid this, then change the home directory to a windows directory (c:\foobar) but realize if you do that, the files will not be available to the Mac.

    The easiest solution is probably just to get Matlab for the Mac.

    HTH,
    matt.
     
  3. joevt

    joevt Forum Maven

    Messages:
    1,229
    If you're using the Shared Profile option (Virtual Machine -> Configure -> Options -> Sharing), then your Windows documents folder is set to your Mac user's documents folder at ~\Documents on the Mac side through the Parallels Shared Folders on the windows side \\.psf\Home\Documents.

    If you disable the Shared Profile option, then your Windows documents folder will return to the original documents folder on the C: drive.

    To access the C: drive on the Mac, you can go through the Parallels mounted disk on the Mac desktop using the Finder.
     

Share This Page