How can I use hexadecimal format for parameter values in xPC Target?

3 ビュー (過去 30 日間)
I want to be able to use hexadecimal numbers directly as parameters of xPC Target blocks.

採用された回答

MathWorks Support Team
MathWorks Support Team 2009 年 6 月 27 日
The ability to enter hexadecimal numbers as parameters of xPC Target blocks is not available in xPC Target.
To work around this issue, use the hex2dec function. This function allows you to specify the number in hexadecimal format.
For example, you can enter a sequence like the following as a parameter:
hex2dec('3ff')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTarget Computer Setup についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by