PI ACE and Matlab - Shared or Dedicated Matlab Automation Server

Discussion created by PIAdminUnison on Apr 3, 2013
Latest reply on Apr 7, 2013 by PIAdminUnison

Hey all,


I have a question about using Matlab in PI ACE.  I have multiple contexts for my ACE calculation.  Each context sends data for variables to Matlab, changes it's Matlab working directory to the location of the ".m" file specific to it's context, and then executes a specific ".m" file.  If I call CreateObject("Matlab.Application") in my ModuleDependentInitialization portion of the ACE code, then I create one instance of Matlab that is shared between all contexts.  If I call CreateObject("Matlab.Application.Single") instead, then I create one instance of Matlab per context in ACE.  If I only use one instance of Matlab for all contexts, won't I have an issue if two or more contexts trigger at the same time?