PutString
Transfer Origin string to Matlab character array.
BOOL PutString( LPCSTR lpcszStringName, LPCSTR lpcszString, LPCSTR lpcszMatLabWorkspace = NULL )
Returns TRUE on successful exit and FALSE on error.
EX1
#include <externApps.h> // this file is not included in origin.h void Matlab_PutString_ex1() { Matlab matObj(TRUE); if(!matObj) { out_str("No Matlab found"); return; } // Matlab object successfully created, i.e. communication established if (matObj.PutString( "mcharname", "OC::Matlab Origin Text", "base" )) { string strMcharname; strMcharname = matObj.GetString( "mcharname", "base" ); out_str(strMcharname); } }
Matlab::GetString
ExternApps.h