亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? simple_lookup.adb

?? 基于MATLAB的simple_lookup詳解
?? ADB
?? 第 1 頁 / 共 2 頁
字號:
               return;            end if;         end loop;      end;   exception      when E : others =>         if ssGetErrorStatus(S) = "" then            ssSetErrorStatus(S,                             "Exception occured in mdlCheckParameters. " &                             "Name: " & Exception_Name(E) & ", " &                             "Message: " & Exception_Message(E) & " and " &                             "Information: " & Exception_Information(E));         end if;   end mdlCheckParameters; -----------------------------------------------------   -- Procedure: mdlInitializeSizes --------------------------------------------   -- Abstract::   --      Configure this S-Function block's attrubutes.   --   procedure mdlInitializeSizes(S : in SimStruct) is   begin      -- The X and Y values can be changed during simulation      ssSetParameterTunable(S, X_VALUES_PRM_IDX,   TRUE);      ssSetParameterName(S, X_VALUES_PRM_IDX,   "XValues");      ssSetParameterTunable(S, Y_VALUES_PRM_IDX,   TRUE);      ssSetParameterName(S, Y_VALUES_PRM_IDX,   "YValues");      -- Lookup method parameter cannot be changed once simulation starts      ssSetParameterTunable(S, LOOKUP_MTH_PRM_IDX, FALSE);      ssSetParameterName(S, LOOKUP_MTH_PRM_IDX, "LookupMethod");      -- Set Size Information      ssSetNumContStates(S, 0);      -- This S-Function has one input port      ssSetNumInputPorts(             S, 1);      -- Set the input port attributes      ssSetInputPortWidth(            S, 0, DYNAMICALLY_SIZED);      ssSetInputPortDataType(         S, 0, SS_DOUBLE);      ssSetInputPortDirectFeedThrough(S, 0, TRUE);      ssSetInputPortOptimizationLevel(S, 0, 3);      ssSetInputPortOverWritable(     S, 0, TRUE);      -- This S-Function has two output ports      ssSetNumOutputPorts(            S, 2);      -- The first output port signal is the looked up table value      ssSetOutputPortWidth(           S, 0, DYNAMICALLY_SIZED);      ssSetOutputPortDataType(        S, 0, SS_DOUBLE);      ssSetOutputPortOptimizationLevel(S, 0, 3);      -- The second output port signal is the index into table corresponding to      -- the looked up value.  In addition,  the lookup algorithm uses the last      -- index to start search,  so the last index value has  to be persistent,      -- hence mark this signal as not reusable      ssSetOutputPortWidth(           S, 1, DYNAMICALLY_SIZED);      ssSetOutputPortDataType(        S, 1, SS_INT32);      ssSetInputPortOptimizationLevel(S, 0, 0);      -- Set the block sample time      ssSetSampleTime(S, INHERITED_SAMPLE_TIME);   exception      when E : others =>         if ssGetErrorStatus(S) = "" then            ssSetErrorStatus(S,                             "Exception occured in mdlInitializeSizes. " &                             "Name: " & Exception_Name(E) & ", " &                             "Message: " & Exception_Message(E) & " and " &                             "Information: " & Exception_Information(E));         end if;   end mdlInitializeSizes; -----------------------------------------------------   -- Procedure: mdlStart ------------------------------------------------------   -- Abstract::   --      Initialize block specific data at simulation start. For this block,   --      this involves setting the persistent output to a reasonable value.   --      Note that we should (and need) not initialize the first output port   --      signal because it is not persistent, and to correctly initialize it   --      we need to know the value of the input signal, which is not available   --      at this point.   --   procedure mdlStart(S : in SimStruct) is      Y1Width : Integer := ssGetOutputPortWidth(S,1);      Y1      : array(0 .. Y1Width-1) of Int_T;      for Y1'Address use ssGetOutputPortSignalAddress(S,1);      MidPoint : Integer := (ssGetParameterWidth(S,0)+1)/2;   begin      -- Initalize the second output port signal, which holds the      -- index into the lookup table, to the middle of the table.      for I in 0 .. Y1Width-1 loop         Y1(I) := MidPoint;      end loop;   exception      when E : others =>         if ssGetErrorStatus(S) = "" then            ssSetErrorStatus(S,                             "Exception occured in mdlStart. " &                             "Name: " & Exception_Name(E) & ", " &                             "Message: " & Exception_Message(E) & " and " &                             "Information: " & Exception_Information(E));         end if;   end mdlStart; ---------------------------------------------------------------   -- Procedure: mdlOutputs ----------------------------------------------------   -- Abstract::   --      Compute the block output port signals. Note that this is just a   --      "wrapper" function.  The actual algorithms are implemented in a   --      seperated package "lookup_methods", which is accessed both from   --      here and Ada code generated using the RTW Ada Code.   --   procedure mdlOutputs(S : in SimStruct; TID : in Integer) is      BlockWidth : Integer := ssGetInputPortWidth(S,0);      U  : array(0 .. BlockWidth-1) of Standard.Long_Float;      for U'Address use ssGetInputPortSignalAddress(S,0);      Y0 : array(0 .. BlockWidth-1) of Standard.Long_Float;      for Y0'Address use ssGetOutputPortSignalAddress(S,0);      Y1 : array(0 .. BlockWidth-1) of Integer;      for Y1'Address use ssGetOutputPortSignalAddress(S,1);      TableLength : Integer := ssGetParameterWidth(S, X_VALUES_PRM_IDX);      XVal  : array(1 .. TableLength) of Standard.Long_Float;      for XVal'Address use ssGetParameterAddress(S, X_VALUES_PRM_IDX);      YVal  : array(0 .. TableLength) of Standard.Long_Float;      for YVal'Address use ssGetParameterAddress(S, Y_VALUES_PRM_IDX);      LookupMth : String := ssGetStringParameter(S, LOOKUP_MTH_PRM_IDX);   begin      if LookupMth = "left" then         Lookup_Methods.Left_Continuous_Lookup(Lookup_Methods.Dbl_Array(U),                                               Lookup_Methods.Dbl_Array(Y0),                                               Lookup_Methods.Int_Array(Y1),                                               Lookup_Methods.Dbl_Array(XVal),                                               Lookup_Methods.Dbl_Array(YVal));      elsif LookupMth = "right" then         Lookup_Methods.Right_Continuous_Lookup(Lookup_Methods.Dbl_Array(U),                                                Lookup_Methods.Dbl_Array(Y0),                                                Lookup_Methods.Int_Array(Y1),                                                Lookup_Methods.Dbl_Array(XVal),                                                Lookup_Methods.Dbl_Array(YVal));      else         ssSetErrorStatus(S, "Unexpected parameter value " & LookupMth &                          " encountered in mdlOutputs");      end if;   exception      when Lookup_Methods.Algorithm_Error =>         ssSetErrorStatus(S, "Algorithmic error in Lookup_Methods");      when E : others =>         if ssGetErrorStatus(S) = "" then            ssSetErrorStatus(S,                             "Exception occured in mdlOutputs. " &                             "Name: " & Exception_Name(E) & ", " &                             "Message: " & Exception_Message(E) & " and " &                             "Information: " & Exception_Information(E));         end if;   end mdlOutputs; -------------------------------------------------------------end Simple_Lookup;-- EOF: simple_lookup.adb

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本高清成人免费播放| 国产成人午夜视频| 欧美视频日韩视频| 亚洲制服丝袜av| 欧美区在线观看| 免费人成网站在线观看欧美高清| 制服丝袜日韩国产| 理论电影国产精品| 精品理论电影在线| 国产原创一区二区| 国产精品美女一区二区在线观看| 99精品1区2区| 亚洲va韩国va欧美va| 日韩三级免费观看| 国产成人久久精品77777最新版本| 中文幕一区二区三区久久蜜桃| 91在线porny国产在线看| 亚洲小说春色综合另类电影| 亚洲精品在线观| 99精品视频一区二区三区| 亚洲精品国产精华液| 日韩欧美一区在线| 国产91精品免费| 亚洲成人综合视频| 久久一夜天堂av一区二区三区| 97久久精品人人澡人人爽| 亚洲成av人片一区二区梦乃| 久久婷婷国产综合精品青草| 色婷婷久久99综合精品jk白丝| 久久99精品久久只有精品| 中文子幕无线码一区tr| 色狠狠av一区二区三区| 蜜桃久久av一区| 日韩一区在线看| 欧美岛国在线观看| 91免费观看视频在线| 毛片av中文字幕一区二区| 日韩一区中文字幕| 日韩欧美一区在线| 日本高清免费不卡视频| 国产精品综合二区| 午夜电影一区二区三区| 国产精品麻豆网站| 欧美一区二区日韩| 色爱区综合激月婷婷| 国产福利91精品一区| 三级精品在线观看| 亚洲欧洲精品一区二区三区不卡| 精品免费一区二区三区| 欧美主播一区二区三区美女| 成人亚洲一区二区一| 免费在线欧美视频| 亚洲综合免费观看高清完整版| 国产视频一区在线播放| 91精品国产高清一区二区三区蜜臀| 成人动漫在线一区| 狠狠色丁香婷综合久久| 人人狠狠综合久久亚洲| 亚洲va欧美va天堂v国产综合| 亚洲人成亚洲人成在线观看图片| 国产午夜精品一区二区三区嫩草| 欧美一级淫片007| 欧美日韩在线三级| 色婷婷一区二区| 91小视频免费观看| 成人av电影在线网| 成人小视频在线| 大陆成人av片| 国产成人av电影在线| 国产一区免费电影| 看电影不卡的网站| 秋霞成人午夜伦在线观看| 一区二区三区在线视频播放 | 91福利视频久久久久| 国产福利一区二区三区视频在线| 国产在线视频一区二区三区| 美女视频一区二区三区| 婷婷久久综合九色综合绿巨人| 亚洲图片欧美一区| 亚洲一区二区美女| 亚洲综合在线免费观看| 亚洲在线中文字幕| 一二三四社区欧美黄| 一区二区高清免费观看影视大全| 亚洲精品国产精品乱码不99| 亚洲午夜一区二区| 亚洲地区一二三色| 视频在线在亚洲| 日本不卡123| 国产在线精品免费| 国产不卡免费视频| eeuss国产一区二区三区| 97精品国产露脸对白| 91亚洲资源网| 欧美性xxxxx极品少妇| 欧美日韩成人一区| 日韩美女一区二区三区四区| 久久精品在线免费观看| 国产精品麻豆99久久久久久| 一区二区三区在线播放| 天天综合网天天综合色| 久久66热re国产| 成a人片国产精品| 在线观看区一区二| 欧美一区二区在线不卡| 久久精品夜色噜噜亚洲aⅴ| 亚洲欧洲精品天堂一级| 亚洲专区一二三| 国产在线一区观看| 一本久久a久久免费精品不卡| 欧美精选在线播放| 久久久不卡网国产精品二区| 亚洲激情一二三区| 全国精品久久少妇| 99视频在线精品| 欧美精品v国产精品v日韩精品 | 97久久人人超碰| 91精品国产色综合久久久蜜香臀| 2019国产精品| 亚洲福利一区二区| 国产一区二区三区av电影| 91啪在线观看| xnxx国产精品| 亚洲一卡二卡三卡四卡无卡久久| 久99久精品视频免费观看| 99精品视频在线免费观看| 91精品国产高清一区二区三区 | 欧美成人a在线| 亚洲丝袜自拍清纯另类| 免费高清在线一区| 色老汉一区二区三区| 久久亚洲欧美国产精品乐播| 亚洲韩国精品一区| 国产不卡视频在线观看| 日韩欧美三级在线| 亚洲精品国产一区二区三区四区在线| 国模娜娜一区二区三区| 欧美亚日韩国产aⅴ精品中极品| 国产喷白浆一区二区三区| 天天综合网天天综合色| 日本高清不卡视频| 久久精品欧美一区二区三区麻豆| 视频一区视频二区中文| 91视频com| 国产精品久久久久久久午夜片 | 色噜噜狠狠成人中文综合| 久久久久久久精| 久久9热精品视频| 欧美日韩精品三区| 亚洲精品国产一区二区精华液 | 久久99精品久久久久久久久久久久| 色视频一区二区| 中文字幕一区在线观看| 国产一区二区美女| 日韩一二三区视频| 首页亚洲欧美制服丝腿| 欧美午夜片在线观看| 亚洲激情欧美激情| 色一情一伦一子一伦一区| 中文字幕免费不卡在线| 国产精品亚洲视频| 久久综合久久综合九色| 捆绑紧缚一区二区三区视频 | 在线观看欧美日本| 综合电影一区二区三区| 成人激情av网| 国产精品丝袜一区| 成人在线综合网| 国产精品国产三级国产有无不卡| 成人综合在线网站| 亚洲国产精品t66y| 粉嫩av亚洲一区二区图片| 国产三级精品视频| 春色校园综合激情亚洲| 国产精品私人自拍| 99久久久国产精品免费蜜臀| 亚洲色图欧美在线| 色悠久久久久综合欧美99| 亚洲一区二区三区在线看| 欧美系列日韩一区| 香蕉av福利精品导航| 欧美一区二区三区视频免费| 久久国产精品无码网站| 久久综合色一综合色88| 粉嫩一区二区三区性色av| 亚洲视频一区在线| 欧美亚洲国产一区二区三区va | 色天天综合色天天久久| 亚洲成av人片观看| 日韩视频一区在线观看| 国产美女av一区二区三区| 国产精品麻豆视频| 在线视频一区二区三区| 日本aⅴ亚洲精品中文乱码| 精品处破学生在线二十三| 高清视频一区二区| 亚洲精品亚洲人成人网在线播放| 欧美日韩大陆一区二区| 国产一区欧美一区| 亚洲狼人国产精品|