{"action":"created","issue":{"url":"https://api.github.com/repos/WEC-Sim/WEC-Sim/issues/225","repository_url":"https://api.github.com/repos/WEC-Sim/WEC-Sim","labels_url":"https://api.github.com/repos/WEC-Sim/WEC-Sim/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/WEC-Sim/WEC-Sim/issues/225/comments","events_url":"https://api.github.com/repos/WEC-Sim/WEC-Sim/issues/225/events","html_url":"https://github.com/WEC-Sim/WEC-Sim/issues/225","id":283068836,"number":225,"title":"MATLAB 2017b specific error","user":{"login":"bretbosma","id":12175532,"avatar_url":"https://avatars0.githubusercontent.com/u/12175532?v=4","gravatar_id":"","url":"https://api.github.com/users/bretbosma","html_url":"https://github.com/bretbosma","followers_url":"https://api.github.com/users/bretbosma/followers","following_url":"https://api.github.com/users/bretbosma/following{/other_user}","gists_url":"https://api.github.com/users/bretbosma/gists{/gist_id}","starred_url":"https://api.github.com/users/bretbosma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bretbosma/subscriptions","organizations_url":"https://api.github.com/users/bretbosma/orgs","repos_url":"https://api.github.com/users/bretbosma/repos","events_url":"https://api.github.com/users/bretbosma/events{/privacy}","received_events_url":"https://api.github.com/users/bretbosma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-19T00:44:10Z","updated_at":"2017-12-20T16:44:55Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nModel runs fine on 2017a but gives the following in 2017b.  Any thoughts?\r\n\r\nThanks,\r\nBret\r\n\r\nError using error_for_persistent_vars_in_ct_mlfcn (line 9)\r\nMATLAB Function uses constructs that are invalid when the block specifies or inherits a continuous sample\r\ntime. Invalid constructs include the use of persistent or global variables, calls to exported functions or\r\nusing coder.extrinstic.\r\n\r\nError in sfprivate (line 15)\r\n       feval(fcnName,varargin{:});\r\n\r\nError in wecSim (line 241)\r\nsim(simu.simMechanicsFile);\r\nSuggested Actions:\r\n    • Set sample rate of this block to inherit the fastest discrete rate in the model. - Fix\r\n    • Open the properties dialog of this block to set the sample time manually. - Open"},"comment":{"url":"https://api.github.com/repos/WEC-Sim/WEC-Sim/issues/comments/353116222","html_url":"https://github.com/WEC-Sim/WEC-Sim/issues/225#issuecomment-353116222","issue_url":"https://api.github.com/repos/WEC-Sim/WEC-Sim/issues/225","id":353116222,"user":{"login":"yuyihsiang","id":4603391,"avatar_url":"https://avatars0.githubusercontent.com/u/4603391?v=4","gravatar_id":"","url":"https://api.github.com/users/yuyihsiang","html_url":"https://github.com/yuyihsiang","followers_url":"https://api.github.com/users/yuyihsiang/followers","following_url":"https://api.github.com/users/yuyihsiang/following{/other_user}","gists_url":"https://api.github.com/users/yuyihsiang/gists{/gist_id}","starred_url":"https://api.github.com/users/yuyihsiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuyihsiang/subscriptions","organizations_url":"https://api.github.com/users/yuyihsiang/orgs","repos_url":"https://api.github.com/users/yuyihsiang/repos","events_url":"https://api.github.com/users/yuyihsiang/events{/privacy}","received_events_url":"https://api.github.com/users/yuyihsiang/received_events","type":"User","site_admin":false},"created_at":"2017-12-20T16:44:55Z","updated_at":"2017-12-20T16:44:55Z","author_association":"CONTRIBUTOR","body":"Hi Bret\r\n\r\nAccording to the error, it is related to the use of persistent variables in one of the MATLAB function block. However, I was not able to reproduce your error. \r\nDid you create any block yourself? Can you send me you model? I can try it on my machine.\r\n\r\nThanks,\r\n\r\nYi-Hsiang\r\n"}}
{"actor":{"display_login":"yuyihsiang"}}