Skip to content

Miscellaneous Functions🔗

Table 1: Miscellaneous functions
Operation
Meaning HALCON operator
sort(t) sorting in increasing order tuple_sort
sort_index(t) return index instead of values tuple_sort_index
inverse(t) reverse the order of the values tuple_inverse
number(v) convert string to a number tuple_number
environment(s) value of an environment variable tuple_environment
ord(a) convert strings of length 1 into character codes (Unicode or ANSI) tuple_ord
chr(a) Inverse of ord(a) tuple_chr
ords(s) convert strings into character codes (Unicode or ANSI) tuple_ords
chrt(i) Inverse of ords(s) tuple_chrt
rand(a) create random numbers tuple_rand