22.01.2015 Views

HDevelop User's Manual

HDevelop User's Manual

HDevelop User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.5. EXPRESSIONS FOR INPUT CONTROL PARAMETERS 73<br />

Ø Ø<br />

Ø Ø<br />

Ø Ø<br />

Ø Ø<br />

Ø Ø<br />

Ø Ø<br />

less than<br />

greater than<br />

less or equal<br />

greater or equal<br />

equal<br />

not equal<br />

Table 3.12: Comparison operators<br />

1st Operand 2nd Operand Operation Result<br />

½ ½º¼ ØÖÙ<br />

℄ ℄ ØÖÙ<br />

³³ ℄ Ð×<br />

½¸³¾³℄ ½¸¾℄ Ð×<br />

½¸¾¸¿℄ ½¸¾℄ Ð×<br />

½½¸³ÀÙÓ³℄ ½½¸³ÀÙÓ³℄ ØÖÙ<br />

³ÀÙÓ³ ³ÙÓ³ Ð×<br />

¾ ½ ØÖÙ<br />

¾ ½º¼ ØÖÙ<br />

¸¸½℄ ¸℄ ØÖÙ<br />

¾¸½℄ ¾¸¼℄ ØÖÙ<br />

ØÖÙ Ð× ØÖÙ<br />

³ÀÙÓ³ ³ÙÓ³ ØÖÙ<br />

Table 3.13: Examples for the comparison of tuples<br />

of type ×ØÖÒ cannot be mixed up with numbers, i.e., ×ØÖÒ values are considered to be not<br />

equal to values of other types.<br />

The four comparison operators compute the lexicographic order of tuples. On equal index<br />

positions the types must be identical, however, values of type ÒØÖ, ÖÐ and ÓÓÐÒ are<br />

adapted automatically. The lexicographic order applies to strings, and the ÓÓÐÒ Ð× is<br />

considered to be smaller than the boolean ØÖÙ (Ð× ØÖÙ). In the program ÓÑÔÖºÚ<br />

you can find examples for the comparison operators.<br />

3.5.9 Boolean Operators<br />

ÒÓØ Ð<br />

Ð Ò Ð<br />

Ð ÓÖ Ð<br />

Ð ÜÓÖ Ð<br />

negation<br />

logical ’and’<br />

logical ’or’<br />

logical ’xor’<br />

Table 3.14: Boolean operators<br />

The boolean operators Ò, ÓÖ, ÜÓÖ and ÒÓØ are defined only for tuples of length 1. Ð Ò Ð<br />

is set to ØÖÙ (1) if both operands are ØÖÙ (1), whereas Ð ÓÖ Ð returns ØÖÙ (1) if at least one<br />

HALCON 6.0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!