• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# nsDataMgr.objUnit类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中nsDataMgr.objUnit的典型用法代码示例。如果您正苦于以下问题:C# objUnit类的具体用法?C# objUnit怎么用?C# objUnit使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



objUnit类属于nsDataMgr命名空间,在下文中一共展示了objUnit类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: EjectorFWDCurveRefush

        private void EjectorFWDCurveRefush(objUnit obj)
        {
            int count = obj.value;
            int MaxStroke = valmoWin.dv.MldPr[234].value;
            int MaxSpeed = valmoWin.dv.MldPr[240].value;
            int[] EjectorFWDData = new int[count * 3];

            if (MaxStroke == 0 || MaxSpeed == 0)
            {
                return;
            }

            Lasal32.GetData(EjectorFWDData, (uint)valmoWin.dv.PrdPr[241].valueNew, count * 12);

            Point[] curveData_Current = new Point[count];
            Point[] curveData_Speed = new Point[count];

            for (int i = 0; i < count; i++)
            {
                double pos = EjectorFWDData[i * 3 + 2] * 1.0 / MaxStroke * 10000;
                double current = EjectorFWDData[i * 3] * 1.0 / 1000 * 10000;
                double speed = Math.Abs(EjectorFWDData[i * 3 + 1]) * 1.0 / MaxSpeed * 10000;

                curveData_Current[i] = new Point(pos, 10000 - (current + 10000) / 2);
                curveData_Speed[i] = new Point(pos, 10000 - speed);
            }

            EjectorFWDSpeedCurve.refushCurve(curveData_Speed);
            EjectorFWDCurrentCurve.refushCurve(curveData_Current);
        }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:30,代码来源:ejectorMapLeft.xaml.cs


示例2: upadatprg3

 private void upadatprg3(objUnit obj)
 {
     if (valmoWin.dv.MldPr[050].vDbl > 0)
     {
         prg3.Value = (int)(100 * valmoWin.dv.MldPr[094].vDbl / valmoWin.dv.MldPr[050].vDbl);
     }
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:7,代码来源:Mold_Lubrication.xaml.cs


示例3: handleIBTPr_008

 private void handleIBTPr_008(objUnit obj)
 {
     lightState2Ctrl5.state = ((obj.value >> 4) & 0x01) == 1;
     lightState2Ctrl6.state = ((obj.value >> 5) & 0x01) == 1;
     lightState2Ctrl7.state = ((obj.value >> 6) & 0x01) == 1;
     lightState2Ctrl8.state = ((obj.value >> 7) & 0x01) == 1;
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:7,代码来源:iprSetting.xaml.cs


示例4: dvBase

        public dvBase()
        {
            try
            {
                objHeart = dataBase[0];

                objUnit.getObjHandle = getObj;
                for (int i = 0; i < dataBase.length; i++)
                {
                    if (dataBase[i] != null)
                    {
                        int num = Int32.Parse(dataBase[i].serialNum.Substring(3, dataBase[i].serialNum.Length - 3));
                        string ser = dataBase[i].serialNum.Substring(0, 3);
                        switch (ser)
                        {
                            case "Abt":
                                AlmPr[num] = dataBase[i];
                                break;
                            case "Key":
                                KeyPr[num] = dataBase[i];
                                break;
                            case "Ipr":
                                IprPr[num] = dataBase[i];
                                break;
                            case "Sys":
                                SysPr[num] = dataBase[i];
                                break;
                            case "Mld":
                                MldPr[num] = dataBase[i];
                                break;
                            case "Inj":
                                InjPr[num] = dataBase[i];
                                break;
                            case "Tmp":
                                TmpPr[num] = dataBase[i];
                                break;
                            case "Prd":
                                PrdPr[num] = dataBase[i];
                                break;
                            case "IOS":
                                IOSPr[num] = dataBase[i];
                                break;
                            case "IOF":
                                IOFPr[num] = dataBase[i];
                                break;
                            case "IBT":
                                IBTPr[num] = dataBase[i];
                                break;
                        }
                        //vm.debug(dataBase[i].serialNum);
                    }
                }
                objUnit.dv_base = this;
                almInit();
            }
            catch (Exception ex)
            {
                vm.perror("[dvBase] " + ex.ToString());
            }
        }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:60,代码来源:dvBase.cs


示例5: handleIBTPr_004

 private void handleIBTPr_004(objUnit obj)
 {
     lightState2Ctrl1.state = ((obj.value >> 4) & 0x01) == 1;
     lightState2Ctrl2.state = ((obj.value >> 5) & 0x01) == 1;
     lightState2Ctrl3.state = ((obj.value >> 6) & 0x01) == 1;
     lightState2Ctrl4.state = ((obj.value >> 7) & 0x01) == 1;
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:7,代码来源:iprSetting.xaml.cs


示例6: refreshState

        private void refreshState(objUnit obj)
        {
            if (_bitNr == -1)
            {
                if (obj.value == 1)
                {
                    _state = true;
                }
                else
                {
                    _state = false;
                }
            }
            else
            {
                if (((obj.value >> _bitNr) & 0x01) == 1)
                {
                    _state = true;
                }
                else
                {
                    _state = false;
                }
            }

            tbState1.SelectedIndex = (_state == true) ? 1 : 0;
        }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:27,代码来源:OStateLED.xaml.cs


示例7: upadatprg2

 private void upadatprg2(objUnit obj)
 {
     if (valmoWin.dv.MldPr[058].vDbl > 0)
     {
         prg2.Value = (int)(100 * valmoWin.dv.MldPr[099].vDbl / valmoWin.dv.MldPr[058].vDbl);
     }
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:7,代码来源:Mold_Lubrication.xaml.cs


示例8: refush2

 private void refush2(objUnit obj)
 {
     double totalTime = valmoWin.dv.SysPr[393].vDbl + obj.vDbl;
     if (totalTime != 0)
     {
         erMaintain2Cr.rateValue = valmoWin.dv.SysPr[393].vDbl / totalTime * 100;
         lbMaintain2Cr.Content = (valmoWin.dv.SysPr[393].vDbl / totalTime * 100).ToString("0.0");
     }
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:9,代码来源:Maintain.xaml.cs


示例9: handleTmpPr_11

 private void handleTmpPr_11(objUnit obj)
 {
     if (valmoWin.dv.TmpPr[11].value >= valmoWin.dv.TmpPr[10].value - valmoWin.dv.TmpPr[14].value && obj.value < valmoWin.dv.TmpPr[10].value + valmoWin.dv.TmpPr[13].value)
     {
         processTmp011.fBackground = new SolidColorBrush(Color.FromRgb(78, 195, 0));
     }
     else
     {
         processTmp011.fBackground = new SolidColorBrush(Color.FromRgb(255,102,0));
     }
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:11,代码来源:BarrelHeatingCtrl.xaml.cs


示例10: RefushLubType

 private void RefushLubType(objUnit obj)
 {
     if (obj.value == 0)
     {
         lbLubType.SetResourceReference(Label.ContentProperty, "CB_LubPumpMode_0");
     }
     else
     {
         lbLubType.SetResourceReference(Label.ContentProperty, "CB_LubPumpMode_1");
     }
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:11,代码来源:Mold_Lubrication.xaml.cs


示例11: handleIpr65

        private void handleIpr65(objUnit obj)
        {
            switch65_0.stateOn = ((obj.value >> 0) & 0x01) == 1;
            switch65_1.stateOn = ((obj.value >> 1) & 0x01) == 1;
            switch65_2.stateOn = ((obj.value >> 2) & 0x01) == 1;
            switch65_3.stateOn = ((obj.value >> 3) & 0x01) == 1;

            switch65_12.stateOn = ((obj.value >> 12) & 0x01) == 1;
            switch65_13.stateOn = ((obj.value >> 13) & 0x01) == 1;
            switch65_14.stateOn = ((obj.value >> 14) & 0x01) == 1;
            switch65_15.stateOn = ((obj.value >> 15) & 0x01) == 1;
        }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:12,代码来源:iprSetting.xaml.cs


示例12: refushState

        private void refushState(objUnit obj)
        {
            if (obj.value == 1)
            {
                _state = true;
            }
            else
            {
                _state = false;
            }

            tbOnline.SelectedIndex = (_state == true) ? 1 : 0;
            tbOnline2.SelectedIndex = (_state == true) ? 1 : 0;
        }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:14,代码来源:motroOnlineCtrl.xaml.cs


示例13: btnStateFunc

 public void btnStateFunc(objUnit obj)
 {
     if (obj.value == 0)
     {
         cvsEmStopActive.Visibility = Visibility.Hidden;
         emStopActiveBg.Visibility = Visibility.Hidden;
         Canvas.SetLeft(cvsEmStopActive, 0);
     }
     else
     {
         cvsEmStopActive.Visibility = Visibility.Visible;
         emStopActiveBg.Visibility = Visibility.Visible;
     }
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:14,代码来源:emStopBtn.xaml.cs


示例14: handleState

 private void handleState(objUnit obj)
 {
     switch (obj.value)
     {
         case 0:
             BtnFore.Visibility = Visibility.Visible;
             BtnForeActive.Visibility = Visibility.Hidden;
             break;
         case 1:
             BtnFore.Visibility = Visibility.Hidden;
             BtnForeActive.Visibility = Visibility.Visible;
             break;
     }
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:14,代码来源:motorOnBtn.xaml.cs


示例15: refushState

        private void refushState(objUnit obj)
        {
            lbVoltage.Content = obj.vDblStr;

            if (obj.vDbl > 100)
            {
                _state = true;
            }
            else
            {
                _state = false;
            }

            tbState2.SelectedIndex = (_state == true) ? 1 : 0;
        }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:15,代码来源:motorVoltageCtrl.xaml.cs


示例16: getNewSPCData

        private void getNewSPCData(objUnit obj)
        {
            valmoWin.ds.ReadNewData();

            object objFileName = TryFindResource("IprFileName");
            if (objFileName != null)
            {
                string strFileName = objFileName.ToString();

                if (strFileName.Length > 0)
                {
                    SocketConnect.getInstance().UpLoad(strFileName);
                }
            }
        }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:15,代码来源:SPCCtrl.xaml.cs


示例17: DriveErr

        public DriveErr(string iType, string iErrCount, string iErrAddr, string iSystem, string iPsu, string iPsu2, string iMotor)
        {
            if (iType != "null")
            {
                object obj = valmoWin.dv.getObj(iType);

                if (obj != null)
                {
                    DriveType = (objUnit)obj;
                }
            }

            D5 = new DriveErr5K(iErrCount, iErrAddr);

            D4 = new DriveErr4K(iSystem, iPsu, iPsu2, iMotor);
        }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:16,代码来源:machionStatePage.xaml.cs


示例18: MachionAction1

        private void MachionAction1(objUnit obj)
        {
            Image_CurrrentAction_Lst1.Clear();

            int temp = obj.value;

            for (int i = 0; i < 32; i++)
            {
                if (((temp >> i) & 0x01) == 1)
                {
                    Image_CurrrentAction_Lst1.Add(Image_MA_Lst1[i]);
                }
            }

            Refush();
        }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:16,代码来源:MachionActionCtrl.xaml.cs


示例19: refushState

        private void refushState(objUnit obj)
        {
            if (_bitNr != -1)
            {
                if (((obj.value >> _bitNr) & 0x01) == 1)
                {
                    _state = true;
                }
                else
                {
                    _state = false;
                }

                tblState.SelectedIndex = (_state == true) ? 1 : 0;
            }
        }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:16,代码来源:motorStateCtrl.xaml.cs


示例20: btnStateFunc

 public void btnStateFunc(objUnit obj)
 {
     switch (obj.value)
     {
         case 1:
             {
                 BtnActive.Visibility = Visibility.Visible;
                 btnBg.Visibility = Visibility.Hidden;
             }
             break;
         case 0:
             {
                 BtnActive.Visibility = Visibility.Hidden;
                 btnBg.Visibility = Visibility.Visible;
             }
             break;
     }
 }
开发者ID:hehaiyang7133862,项目名称:VICO_Current,代码行数:18,代码来源:moldHeatingBtn.xaml.cs



注:本文中的nsDataMgr.objUnit类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# LinearAlgebra.Vector类代码示例发布时间:2022-05-26
下一篇:
C# nist_dom.testResults类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap