


{"id":434830,"date":"2025-06-19T15:42:33","date_gmt":"2025-06-19T15:42:33","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/char-255-in-rapid-prototiper-suite\/"},"modified":"2025-10-01T12:31:00","modified_gmt":"2025-10-01T12:31:00","slug":"char-255-in-rapid-prototiper-suite","status":"answered","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/char-255-in-rapid-prototiper-suite\/","title":{"rendered":"char ^255 in Rapid prototiper + Suite"},"content":{"rendered":"<p>&lt;p data-start=&#8221;176&#8243; data-end=&#8221;215&#8243;&gt;&lt;span style=&#8221;font-size: 12pt;&#8221;&gt;Hi!&lt;\/span&gt;&lt;br data-start=&#8221;179&#8243; data-end=&#8221;182&#8243;&gt;&lt;span style=&#8221;font-size: 12pt;&#8221;&gt;I hope you&#8217;re having a great day.&lt;\/span&gt;&lt;\/p&gt;&lt;p data-start=&#8221;217&#8243; data-end=&#8221;464&#8243;&gt;&lt;span style=&#8221;font-size: 12pt;&#8221;&gt;I&#8217;m currently using a &#8220;case&#8221; block in SCADE Suite to provide text values to a &#8220;Text Display&#8221; widget in Rapid Prototyper. This widget requires an input of type &#8220;char^255&#8243;. However, the strings I want to display range from 4 to 10 characters long.&lt;\/span&gt;&lt;\/p&gt;&lt;p data-start=&#8221;466&#8243; data-end=&#8221;613&#8243;&gt;&lt;span style=&#8221;font-size: 12pt;&#8221;&gt;I understand that I need to null-terminate the string with &#8216;\\0&#8217; or someting like that, so that it works properly, but I haven&rsquo;t been able to get the syntax right, and the result after &#8220;Check&#8221; is &#8220;Source Code error&#8221;.&lt;\/span&gt;&lt;\/p&gt;&lt;p data-start=&#8221;615&#8243; data-end=&#8221;677&#8243;&gt;&lt;span style=&#8221;font-size: 12pt;&#8221;&gt;Here&rsquo;s what I&rsquo;ve tried using the word &#8220;Vacio&#8221;&nbsp;as an example:&lt;\/span&gt;&lt;\/p&gt;&lt;ul data-start=&#8221;679&#8243; data-end=&#8221;776&#8243;&gt;&lt;li style=&#8221;font-size: 12pt;&#8221; data-start=&#8221;679&#8243; data-end=&#8221;694&#8243;&gt;&lt;p data-start=&#8221;681&#8243; data-end=&#8221;694&#8243;&gt;&lt;span style=&#8221;font-size: 12pt;&#8221;&gt;&#8221;Vacio\\0&#8243;&lt;\/span&gt;&lt;\/p&gt;<\/li>\n<p>&lt;li style=&#8221;font-size: 12pt;&#8221; data-start=&#8221;695&#8243; data-end=&#8221;712&#8243;&gt;&lt;p data-start=&#8221;697&#8243; data-end=&#8221;712&#8243;&gt;&lt;span style=&#8221;font-size: 12pt;&#8221;&gt;(&#8220;Vacio\\0&#8221;)&lt;\/span&gt;&lt;\/p&gt;<\/li>\n<p>&lt;li style=&#8221;font-size: 12pt;&#8221; data-start=&#8221;713&#8243; data-end=&#8221;750&#8243;&gt;&lt;p data-start=&#8221;715&#8243; data-end=&#8221;750&#8243;&gt;&lt;span style=&#8221;font-size: 12pt;&#8221;&gt;(&#8216;v&#8217;, &#8216;a&#8217;, &#8216;c&#8217;, &#8216;i&#8217;, &#8216;o&#8217;, &#8216;\\0&#8217;)&lt;\/span&gt;&lt;\/p&gt;<\/li>\n<p>&lt;li style=&#8221;font-size: 12pt;&#8221; data-start=&#8221;751&#8243; data-end=&#8221;776&#8243;&gt;&lt;p data-start=&#8221;753&#8243; data-end=&#8221;776&#8243;&gt;&lt;span style=&#8221;font-size: 12pt;&#8221;&gt;concat(&#8220;Vacio&#8221;, &#8216;\\0&#8217;)&lt;\/span&gt;&lt;\/p&gt;<\/li>\n<\/ul>\n<p>&lt;p data-start=&#8221;778&#8243; data-end=&#8221;885&#8243;&gt;&lt;span style=&#8221;font-size: 12pt;&#8221;&gt;I also attempted to reduce the expected size of the array in Rapid Prototyper, but that didn&rsquo;t work either.&lt;\/span&gt;&lt;\/p&gt;&lt;p data-start=&#8221;887&#8243; data-end=&#8221;977&#8243;&gt;&lt;span style=&#8221;font-size: 12pt;&#8221;&gt;Do you have any suggestions or best practices for handling this kind of string formatting?&lt;\/span&gt;&lt;\/p&gt;&lt;p data-start=&#8221;979&#8243; data-end=&#8221;1017&#8243;&gt;&lt;span style=&#8221;font-size: 12pt;&#8221;&gt;Thanks a lot in advance for your help!&lt;\/span&gt;&lt;\/p&gt;&lt;p data-start=&#8221;979&#8243; data-end=&#8221;1017&#8243;&gt;&nbsp;&lt;\/p&gt;&lt;p data-start=&#8221;979&#8243; data-end=&#8221;1017&#8243;&gt;&nbsp;&lt;\/p&gt;&lt;p data-start=&#8221;979&#8243; data-end=&#8221;1017&#8243;&gt;&lt;span style=&#8221;font-size: 12pt;&#8221;&gt;<img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2025\/06\/19-06-2025-1750347675-WhatsApp Image 2025-06-19 at 8.58.48 AM (1).jpeg\" alt=\"\" \/><img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2025\/06\/19-06-2025-1750347687-WhatsApp Image 2025-06-19 at 8.58.48 AM (2).jpeg\" alt=\"\" \/>&lt;\/span&gt;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-434830","topic","type-topic","status-answered","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27795"],"_bbp_topic_id":["434830"],"_bbp_subscription":["341704","29721"],"_bbp_author_ip":["200.55.45.126"],"_bbp_last_reply_id":["435659"],"_bbp_last_active_id":["435659"],"_bbp_last_active_time":["2025-06-30 13:05:38"],"_bbp_reply_count":["3"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["341704","29721"],"_btv_view_count":["10322"],"_bbp_topic_status":["answered"]},"test":"yair-orosunaq-mx"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/434830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/434830\/revisions"}],"predecessor-version":[{"id":442784,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/434830\/revisions\/442784"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=434830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}