Import images for requirements via reqIf file

14 ビュー (過去 30 日間)
Karolin Repp
Karolin Repp 2021 年 3 月 12 日
コメント済み: Karolin Repp 2021 年 3 月 18 日
I have a little problem with simulink requirements:
I want to import some images for my requirements via an reqif file and xhtml. The images are saved in a separate folder and the main aspect was to import them via the command: <xhtml:object data="export/fancyName.png" type="image/png"></xhtml:object> (which works with ReqIfStudio) but I only get the "broken Image"-Icon.
I also tried to do some reversed engineering and tried to save the images first in simulink requirements and after that export it as reqIf. There I say that the image is saved encoded. But it would be an major effort to encode all my images.
Therefore my question: Does somebody knows who do import the images via an xhtml command or do I really have to encode all of my images?
  3 件のコメント
Karolin Repp
Karolin Repp 2021 年 3 月 12 日
It's just a reqif. I had the naive hope, that if it's similar to normal html programming, where it is enough to just give the path to the image and they will be imported by the tool (in this case simulink requirements).
Yongjian Feng
Yongjian Feng 2021 年 3 月 12 日
How did you generate that ReqIf file please?

サインインしてコメントする。

採用された回答

Leo
Leo 2021 年 3 月 15 日
Hi Karolin,
Please try the following steps to see whether it works:
  1. You can create a folder which contains:
youreqif.xml - xml
export - folder
fancyName.png -- your image file inside export.
2. Then in this folder, create zipfile to include everything. e.g. youreqif.zip
3. Next, rename
yourreqif.zip -> yourreqif.reqifz
4. Try import yourreqif.reqifz using Simulink Requirements
Hope this helps.
ZQ
  1 件のコメント
Karolin Repp
Karolin Repp 2021 年 3 月 18 日
I tried it and it worked for me thanks

サインインしてコメントする。

その他の回答 (0 件)

タグ

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by