This project demonstrates use of strings and provides examples of various character encodings.
Click here to download the project: https://github.com/DanlawMxTeam/Samples/raw/master/StringSample.rar
Prerequisites
Applies to:
•MxSuite 3.38 or later
Other Requirements:
•The user should have an understanding of MxSuite Scenarios, TestCases, and Transforms.
Description
The Harness consists of 5 Transforms:
•C# Snippet - generates a series of string transitions in 6 text encodings
•PassThru - shows how string Signals pass through the Transform in the same format
•Repeater - transmits its input to two ArrayToMessage Transforms
•ArrayToMessage - converts a one-dimensional array of continuous floating-point numeric elements into a string with Little-Endian encoded UInt16 text
•ArrayToMessage1 - converts a one-dimensional array of continuous floating-point numeric elements into a string with Big-Endian encoded UInt16 text
To run the test, run the Default Scenario. The Scenario should pass. In the Tick TestCase, you can observe all the input and output Signals.
Use the Transition List's Transition Detail pane to examine the format of various character encodings:
![]() UTF7 |
![]() UTF16 (little endian) |
![]() UTF16 Big Endian |
![]() UTF32 |
The ConvertedArray and ConvertedArrayBE Signals show examples of strings produced by the ArrayToMessage Transform with different Endian properties selected. For more information, see ArrayToMessage.
ArrayToMessage/MessageToArray Transforms