Skip to content

Uint16Seq

mtbeek32 edited this page Jan 24, 2023 · 10 revisions

Sequence functions Uint8Seq

syntax

  • uint16Seq(a)

definition

uint16Seq(a) results in a sequence of 16 bits unsigned integers derived from string data item a.

The syntax for string argument a need to be: {10: 41 9999 42 10 600 1 7 116 0 110} .

In this string the curly brackets {..} indicate the start and end of the sequence.

The first number (10) indicates the number of elements of the sequence followed by a colon. The elements of the sequence follow this colon, separated by spaces.

applies to

since version

7.130

example

Elements/points Elements/SequenceNr Elements/ordinal
41 0 0
9999 0 1
42 0 2
10 0 3
600 0 4
1 0 5
7 0 6
116 0 7
0 0 8
110 0 9

domain Elements, nr of rows = 10

parameter<string> param               :=  '{10:  41  9999  42  10  600  1  7  116  0  110}';
parameter<uint16> param_uint16 (poly) :=  uint16Seq(source/param);

unit<uint32> posListUnit := range(uint32,  0,  1);
unit<uint32> Elements    := sequence2points(union_data(posListUnit,  param_uint16));
Clone this wiki locally