コード例 #1
0
 public InSignal(int port, string name, string path, HiCoreClient hiCore)
 {
     _hiCore     = hiCore;
     _portNumber = port;
     _portName   = name;
     _pDll       = DllMethods.LoadLibrary(path);
 }
コード例 #2
0
 public OutSignal(int port, string name, string path, HiCoreClient hiCore, string channelName)
 {
     _hiCore      = hiCore;
     _portNumber  = port;
     _portName    = name;
     _pDll        = DllMethods.LoadLibrary(path);
     _channelName = channelName;
 }
コード例 #3
0
        public SimulinkModel(string path, HiCoreClient hicore, XmlHelper xmlHelper)
        {
            _hiCore        = hicore;
            _pDll          = DllMethods.LoadLibrary(path);
            _path          = path;
            _directoryPath = Path.GetDirectoryName(path);
            _name          = new DirectoryInfo(_directoryPath).Name;

            Initialze();
            ReadXml();
        }
コード例 #4
0
        public SimulinkModel(string path, HiCoreClient hicore, List <ISignal> inSignals, List <ISignal> outSignals)
        {
            _hiCore        = hicore;
            _pDll          = DllMethods.LoadLibrary(path);
            _path          = path;
            _directoryPath = Path.GetDirectoryName(path);
            _name          = new DirectoryInfo(_directoryPath).Name;

            Initialze();
            _inSignals  = inSignals;
            _outSignals = outSignals;
        }