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
•MxSuite 3.38 or later
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:
UTF16 (little endian)
UTF16 Big Endian
The ConvertedArray and ConvertedArrayBE Signals show examples of strings produced by the ArrayToMessage Transform with different Endian properties selected. For more information, see ArrayToMessage.