Building Controls Virtual Test Bed
compile.m File Reference

Go to the source code of this file.

Functions

getenv('BCVTB_OS' deblank ()
 
 if (strcmp(os,'windows'))%have Windows LIBBCVTB
 
 elseif (strcmp(os,'mac')) LIBBCVTB
 
 loadlibrary (LIBBCVTB,... 'matlabSocket.h',... 'includepath', './..',... 'mfilename', 'bcvtb.m')%-------------------------------------------------------------------%Check if Simulink is installed on this system.If Simulink is%is not installed
 
if strcmp (retVal, '') disp('Simulink is not installed on this computer.') disp('The Simulink library will not be compiled.') else makeSBlock
 
 disp ('***Generating mex file') legacy_code('sfcn_cmex_generate'
 
def disp ('***Compiling code')%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%fix from Mathworks(email from 2/7/08) fschange('')
 
FSCHANGE is a Mathworks
internal function that is used
for troubleshooting purposes
It takes the name of a
directory as an input and
forces the MATLAB path manager
to recheck the contents of the
directory to check for 
new (or deleted) files.When an empty string is%%passed as an input the entire path is rechecked.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Compilation for Windows if(strcmp(os
 
FSCHANGE is a Mathworks
internal function that is used
for troubleshooting purposes
It takes the name of a
directory as an input and
forces the MATLAB path manager
to recheck the contents of the
directory to check for windows
have Windows 
disp ('***Compiling MATLAB interface for Windows') legacy_code('compile'
 
 delete (fn) end end exit
 

Variables

This file compiles the BSD
socket interface for Simulink
It is called by ant On 
Windows
 
This file compiles the BSD
socket interface for Simulink
It is called by ant On it
requires the Microsoft
compiler 
Note
 
This file compiles the BSD
socket interface for Simulink
It is called by ant On it
requires the Microsoft
compiler since matlab requires
the size of output arrays to
be fixed If more elements are 
required
 
else LIBBCVTB ='../util/libbcvtb.so'
 
end incPat = [pwd, '/..']
 
exit Otherwise
 
exit continue and compile
simulink libraries 
retVal =which('simulink')
 
 modelName = 'BSDSocket'
 
 def =legacy_code('initialize')
 
def SourceFiles ={'simulinkSocket.c'}
 
def HeaderFiles ={'simulinkSocket.h'}
 
def SampleTime = 'inherited'
 
 funNam = {'establishBSDSocket', 'exchangeDoublesWithBSDSocket', 'closeBSDSocket'}
 
 funSpe
 
for i
 
def OutputFcnSpec = char(funSpe(i))
 
FSCHANGE is a Mathworks
internal function that is used
for troubleshooting purposes
It takes the name of a
directory as an input and
forces the MATLAB path manager
to recheck the contents of the
directory to check for windows
have Windows 
c
 

Function Documentation

getenv('BCVTB_OS' deblank ( )
virtual
delete ( fn  )
disp ( '***Generating mex file'  )
def disp ( '***Compiling code'  )
FSCHANGE is a Mathworks internal function that is used for troubleshooting purposes It takes the name of a directory as an input and forces the MATLAB path manager to recheck the contents of the directory to check for windows have Windows disp ( '***Compiling MATLAB interface for Windows )
elseif ( strcmp(os,'mac')  )
if ( strcmp(os,'windows')  )
loadlibrary ( LIBBCVTB  ,
... 'matlabSocket.h'  ,
... 'includepath'  ,
'./..'  ,
... 'mfilename'  ,
'bcvtb.m'   
)
FSCHANGE is a Mathworks internal function that is used for troubleshooting purposes It takes the name of a directory as an input and forces the MATLAB path manager to recheck the contents of the directory to check for new ( or  deleted)
if strcmp ( retVal  ,
''   
)

Referenced by end(), EPstart(), and start().

Variable Documentation

FSCHANGE is a Mathworks internal function that is used for troubleshooting purposes It takes the name of a directory as an input and forces the MATLAB path manager to recheck the contents of the directory to check for windows have Windows c

Definition at line 89 of file compile.m.

Referenced by first(), and BCVTB.VersionUpdater::main().

FSCHANGE is a Mathworks internal function that is used for troubleshooting purposes It takes the name of a directory as an input and forces the MATLAB path manager to recheck the contents of the directory to check for windows have Windows def =legacy_code('initialize')

Definition at line 58 of file compile.m.

Definition at line 63 of file compile.m.

funSpe
Initial value:
= {'int16 y1 = establishBSDSocket(int16 u1[1])', ...
'int16 y1 = exchangeDoublesWithBSDSocket(int16 u1[1], int16 u2[1], int16 y2[1], int16 u3[1], double u4[1], double u5[], double y3[1], double y4[1024])', ...
'int16 y1 = closeBSDSocket(int16 u1[1], int16 u2[1])'}

Definition at line 64 of file compile.m.

def HeaderFiles ={'simulinkSocket.h'}

Definition at line 60 of file compile.m.

for i
Initial value:
=1:3
def.SFunctionName = char(funNam(i))
for i
Definition: compile.m:69
funNam
Definition: compile.m:63
def
Definition: compile.m:58

Definition at line 69 of file compile.m.

Referenced by adInterfaceMCC.actor.ADInterfaceMCCWriter::addPropertyValue(), bacnet.actor.BACnetWriter::addPropertyValue(), assembleBuffer(), adInterfaceMCC.actor.ADInterfaceMCCWriter::checkNumberOfInput(), adInterfaceMCC.actor.ADInterfaceMCCWriter::consumeToken(), bacnet.actor.BACnetWriter::consumeToken(), disassembleBuffer(), disassembleHeaderBuffer(), EPstart(), adInterfaceMCC.util.ADInterfaceMCC::executeProcess(), bacnet.util.BACnet::executeProcess(), first(), freeResource(), getepvariables(), getepvariablesFMU(), adInterfaceMCC.util.ADInterfaceMCCDeviceManager::getProcesses(), bacnet.util.BACnetDeviceManager::getProcesses(), getsockethost(), getsocketportnumber(), getxmlvalues(), GetPath::main(), main(), bacnet.util.BACnetObjectType::parseObjectType(), adInterfaceMCC.actor.ADInterfaceMCCWriter::prefire(), bacnet.actor.BACnetWriter::prefire(), adInterfaceMCC.actor.ADInterfaceMCCReader::propertyValueReader(), bacnet.util.BACnetDeviceManager::readCompleteObjectPropertyList(), bacnet.util.BACnetDeviceManager::readDeviceArray(), bacnet.util.BACnet::readDevicePropertyArray(), bacnet.util.BACnetDeviceManager::readDevicePropertyList(), readfromsocket(), bacnet.util.BACnetDeviceManager::readObjectList(), BCVTB.Launcher::setupCommandList(), BCVTB.Launcher::setupPtolemyArguments(), start(), adInterfaceMCC.util.ADInterfaceMCCDeviceManager::toString(), bacnet.util.BACnetDeviceManager::toString(), bacnet.util.BACnet::transformArrayList(), adInterfaceMCC.util.ADInterfaceMCC::transformArrayListDouble(), adInterfaceMCC.util.ADInterfaceMCC::transformArrayListString(), bacnet.util.BACnet::validateAttributes(), adInterfaceMCC.util.ADInterfaceMCC::validateAttributes(), bacnet.util.BACnet::validateDevice(), bacnet.util.BACnet::validateObjectType(), and bacnet.util.BACnet::validatePropertyName().

end incPat = [pwd, '/..']

Definition at line 39 of file compile.m.

else LIBBCVTB ='../util/libbcvtb.so'

Definition at line 37 of file compile.m.

modelName = 'BSDSocket'

Definition at line 56 of file compile.m.

This file compiles the BSD socket interface for Simulink It is called by ant On it requires the Microsoft compiler Note

Definition at line 5 of file compile.m.

exit Otherwise

Definition at line 47 of file compile.m.

def OutputFcnSpec = char(funSpe(i))

Definition at line 71 of file compile.m.

This file compiles the BSD socket interface for Simulink It is called by ant On it requires the Microsoft compiler since matlab requires the size of output arrays to be fixed If more elements are required
exit continue and compile simulink libraries retVal =which('simulink')

Definition at line 49 of file compile.m.

def SampleTime = 'inherited'

Definition at line 61 of file compile.m.

def SourceFiles ={'simulinkSocket.c'}

Definition at line 59 of file compile.m.

This file compiles the BSD socket interface for Simulink It is called by ant On Windows

Definition at line 5 of file compile.m.