コード例 #1
0
        //=============================================================================
        /// <summary>
        /// get scilab type of named matrix
        /// </summary>
        /// <param name="matrixName"> variable name</param>
        /// <returns>scilab type (see enum ScilabType)</returns>
        //public unsafe int getNamedVarType(string matrixName)
        //{
        //    int iType = 0;
        //    System.IntPtr ptrEmpty = new System.IntPtr();

        //    cEngineDlls.api_Err SciErr = cEngineDlls.getNamedVarType(ptrEmpty, matrixName, &iType);
        //    if (SciErr.iErr == 0) return iType;
        //    return 0;
        //}
        //=============================================================================
        /// <summary>
        /// Detect if a variable name exists in Scilab
        /// </summary>
        /// <param name="matrixName"> variable name</param>
        /// <returns> true if exists</returns>
        //public unsafe Boolean existNamedVariable(string matrixName)
        //{
        //    int* piAdress = null;
        //    System.IntPtr ptrEmpty = new System.IntPtr();

        //    cEngineDlls.api_Err SciErr = cEngineDlls.getVarAddressFromName(ptrEmpty, matrixName, &piAdress);
        //    if (SciErr.iErr == 0) return true;
        //    return false;
        //}
        //=============================================================================
        /// <summary>
        /// Execute a scilab script .sce
        /// </summary>
        /// <param name="scriptFilename">the path to the .sce file</param>
        /// <returns>error code operation, 0 : OK</returns>
        public int execScilabScript(String scriptFilename)
        {
            //return m_objScilabInvoker.callEngineJob("exec('" + scriptFilename + "');");
            return(Scilab_cs_wrapper.SendScilabJob("exec('" + scriptFilename + "');"));
        }
コード例 #2
0
 //=============================================================================
 /// <summary>
 /// Execute a scilab script .sce
 /// </summary>
 /// <param name="scriptFilename">the path to the .sce file</param>
 /// <returns>error code operation, 0 : OK</returns>
 public int execScilabScript(String scriptFilename)
 {
     return(Scilab_cs_wrapper.SendScilabJob("exec('" + scriptFilename + "');"));
 }
コード例 #3
0
 //=============================================================================
 /// <summary>
 /// Send a job to scilab
 /// </summary>
 /// <param name="command">command to send to scilab</param>
 /// <returns>error code operation, 0 : OK</returns>
 public int SendScilabJob(string command)
 {
     return(Scilab_cs_wrapper.SendScilabJob(command));
     //return m_objScilabInvoker.callEngineJob(command);
 }//SendScilabJob
コード例 #4
0
 //=============================================================================
 /// <summary>
 /// Send a job to scilab
 /// </summary>
 /// <param name="command">command to send to scilab</param>
 /// <returns>error code operation, 0 : OK</returns>
 public int SendScilabJob(string command)
 {
     return(Scilab_cs_wrapper.SendScilabJob(command));
 }