-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ert_linux in Matlab 2023a - No external mode #3
Comments
Hello Roberto, I overlooked the issue. Matlab/Simulink has switched to some ribbon based infrastructure to install complete packages for individual targets and when target package is not installed then button is not shown. We need to find way how to package ert_linux that way... But it is complex and I need some advice from people who know better internals. The ribbon integration is marked as the issue #1. As a wokaround we use own buttons directly in the diagram to build model, deploy it over SSH and connect to it. See ert_linux_build https://github.com/aa4cc/ert_linux/blob/master/ert_linux/ert_linux_build.m and ert_linux_deploy_and_connect https://github.com/aa4cc/ert_linux/blob/master/ert_linux/ert_linux_deploy_and_connect.m which are included in the sample model https://github.com/aa4cc/ert_linux/blob/master/model_samples/model_sample.slx Best wishes, Pavel |
Hi Pavel we had a workaround installing your package not under the
"main" rtw/x/ert_linux as usual, but installing some files in the
"local" (Documents/MATLAB) folder.
I'll check the right way with my colleague that are now working with
RT-linux, Matlab and your package to have the details for the
installation, and then I send you our solution. After installing in this
way it was possible to see ert_linux as target, build, deploy and
connect the scopes with the RT task.
Roberto
…On 10/18/23 12:58, Pavel Pisa wrote:
Hello Roberto, I overlooked the issue. Matlab/Simulink has switched to
some ribbon based infrastructure to install complete packages for
individual targets and when target package is not installed then
button is not shown. We need to find way how to package ert_linux that
way... But it is complex and I need some advice from people who know
better internals.
As a wokaround we use own buttons directly in the diagram to build
model, deploy it over SSH and connect to it.
See ert_linux_build
https://github.com/aa4cc/ert_linux/blob/master/ert_linux/ert_linux_build.m
and ert_linux_deploy_and_connect
https://github.com/aa4cc/ert_linux/blob/master/ert_linux/ert_linux_deploy_and_connect.m
which are included in the sample model
https://github.com/aa4cc/ert_linux/blob/master/model_samples/model_sample.slx
Best wishes,
Pavel
—
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7WD7T3D3KR3ENXPDMVEGDX76Y53AVCNFSM6AAAAAA3YSSWZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRYGIYDIMBTHE>.
You are receiving this because you authored the thread. [Disarmed
tracker from
https://github.com/notifications/beacon/AB7WD7UUIQ5DVO6SBB3CAB3X76Y53A5CNFSM6AAAAAA3YSSWZCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTJMSTQO.gif]
Message ID: ***@***.***>
--------------lvkDVMJfHoqE777Q4bhJot3e
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: 8bit
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hi Pavel we had a workaround installing your package not under the
"main" rtw/x/ert_linux as usual, but installing some files in the
"local" (Documents/MATLAB) folder.<br>
<br>
I'll check the right way with my colleague that are now working with
RT-linux, Matlab and your package to have the details for the
installation, and then I send you our solution. After installing in
this way it was possible to see ert_linux as target, build, deploy
and connect the scopes with the RT task.<br>
<br>
Roberto<br>
<br>
<div class="moz-cite-prefix">On 10/18/23 12:58, Pavel Pisa wrote:<br>
</div>
<blockquote type="cite"
***@***.***">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p dir="auto">Hello Roberto, I overlooked the issue.
Matlab/Simulink has switched to some ribbon based infrastructure
to install complete packages for individual targets and when
target package is not installed then button is not shown. We
need to find way how to package ert_linux that way... But it is
complex and I need some advice from people who know better
internals.</p>
<p dir="auto">As a wokaround we use own buttons directly in the
diagram to build model, deploy it over SSH and connect to it.</p>
<p dir="auto">See ert_linux_build</p>
<p dir="auto"><a
href="https://github.com/aa4cc/ert_linux/blob/master/ert_linux/ert_linux_build.m"
moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/aa4cc/ert_linux/blob/master/ert_linux/ert_linux_build.m</a></p>
<p dir="auto">and ert_linux_deploy_and_connect</p>
<p dir="auto"><a
href="https://github.com/aa4cc/ert_linux/blob/master/ert_linux/ert_linux_deploy_and_connect.m"
moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/aa4cc/ert_linux/blob/master/ert_linux/ert_linux_deploy_and_connect.m</a></p>
<p dir="auto">which are included in the sample model</p>
<p dir="auto"><a
href="https://github.com/aa4cc/ert_linux/blob/master/model_samples/model_sample.slx"
moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/aa4cc/ert_linux/blob/master/model_samples/model_sample.slx</a></p>
<p dir="auto">Best wishes,</p>
<p dir="auto">Pavel</p>
<p
style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>
Reply to this email directly, <a
href="#3 (comment)"
moz-do-not-send="true">view it on GitHub</a>, or <a
href="https://github.com/notifications/unsubscribe-auth/AB7WD7T3D3KR3ENXPDMVEGDX76Y53AVCNFSM6AAAAAA3YSSWZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRYGIYDIMBTHE"
moz-do-not-send="true">unsubscribe</a>.<br>
You are receiving this because you authored the thread.<img
src="data:image/png;base64,RkZGRkZGLTAuMC5wbmc="
title="Disarmed tracker from https://github.com/notifications/beacon/AB7WD7UUIQ5DVO6SBB3CAB3X76Y53A5CNFSM6AAAAAA3YSSWZCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTJMSTQO.gif"
moz-do-not-send="true" width="1" height="1"><span
style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message
ID: <span><aa4cc/ert_linux/issues/3/1768204039</span><span>@</span><span>github<span>.</span><span>com></span></span></span></p>
<script type="application/ld+json">[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#3 (comment)",
"url": "#3 (comment)",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>
</blockquote>
<br>
</body>
</html>
--------------lvkDVMJfHoqE777Q4bhJot3e--
|
Hi Pavel in order to run ert_linux in Matlab we had to install the ert_linux package into the local folder, which in our case is home/stud/Documents/MATLAB/SupportPackages/R2023a/toolbox/realtime/targets/ert_linux/ Then in Simulink we use Apps -> Embedded coder For code generation we runs I hope this can help |
Thanks, I will check it sometime. Anyway, some solution with packaging would help in long term perspective... |
We had some old implementation of ert_linux used without problems with previous versions of Matlab and Simulink.
Now, we are using a previously defined template with ert_linux + Mex not inlined + external mode in matlab 2023a, but we can find out how to connect the scope to the rt running target.
The generated RT application runs as expected, but we can no more find the "connect to target button" on the simulink windows,
We tried different ways, using "hardware connection" + ert_linux, but without getting the "build" button or other ways to get our rt code...
The text was updated successfully, but these errors were encountered: