Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

In order to allows direct communication between MATLAB and EPICS, we used the epics-labca from GitHub. 
While the library building in a Linux system is quite simple and works fine,  the building into a Windows System needs some particular attention to be achieved.


...

  • the epics-labca source files downloaded from GitHub
  • Epics installed on your device
  • Matlab installed on your device

In my case, epics was 7The present guide describes an installation based on: epics7.0 version and Matlab R2022
In Windows environment  it would be preferred that those program were installed in a path without blank spaces. Maybe is not necessary, but I did.

...

Change the EPICS_BASE value with the installation path of your EPICS, at the base level
No need for  EPICS_BASE ro to be compounded by a  BASE_SUBDIR.

...

Open the glue/mglue.h file and edit the line 91 that was
void lcaMexGblInit();

trasforming it in:
epicsShareFunc void epicsShareAPI  lcaMexGblInit();

This is necessary because Windows for default doesn't export functions into library. It must be explicitly declared, differently from Linux.

...