OK/NOK

This widget visualizes a "good" or "bad" state by being connected to a result with a value ≠ 0 ("good") or a value = 0 ("bad"). You can define a background color and an individual text for each case. The current state is then visualized with your predefined properties.

Style

X, Y:

Adjust the position of the widget by typing the desired coordinate values of the upper left corner into the input field.

Z-Order:

Adjust the z-order of the widget by typing the desired value into the input field. This defines which widget is displayed on top if several widgets are positioned at the same place, for example, if widget "A" has "Z-Order" "0" and widget "B" has "Z-Order" "1", widget "B" will be displayed on top of widget "A".

Width:

Adjust the width of the widget. The width is defined in pixels and set to 64 by default. To change the value, type the new width into the input field. It must be at least 20 and not be bigger than 2147483647.

Height:

Adjust the height of the widget. The height is defined in pixels and set to 55 by default. To change the value, type the new height into the input field. It must be at least 20 and not be bigger than 2147483647.

Background Color OK:

Adjust the background color of the widget for the positive case, i.e., the "good" state. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

Background Color NOK:

Adjust the background color of the widget for the negative case, i.e., the "bad" state. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

Text OK:

Define the text to be displayed for the positive case, i.e., the "good" state, by typing the text directly into the text field.

Text NOK:

Define the text to be displayed for the negative case, i.e., the "bad" state, by typing the text directly into the text field.

Shape:

Choose if the widget is visualized in a circular or rectangular shape. By default the shape is set to "circle". To change the shape, select "rectangle" from the drop-down menu.

Font Size:

Adjust the size of the displayed font. Select the font size from the combo box or type the value directly into the input field.

Font Color OK:

Adjust the color of the displayed text for the positive case, i.e., the "good" state. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

Font Color NOK:

Adjust the color of the displayed text for the negative case, i.e., the "bad" state. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.

Font Family:

Select the font family of the displayed text in the drop-down menu of this property.

Horizontal Text Alignment:

Adjust the horizontal alignment of the displayed text. It is set to "center" by default. You can also select "left" and "right" for the alignment at the drop down menu.

Vertical Text Alignment:

Adjust the vertical alignment of the displayed text. It is set to "center" by default. You can also select "top" and "bottom" for the alignment at the drop-down menu.

Data

If you create a tool group in your MVApp, make sure to connect your tool parameters and results in the Frontend Designer before grouping. For more information, see Connecting to Tools in a Group in Adjusting Your Widgets.

Connected Tool:

Connect to a tool from your MERLIC Vision App by selecting the desired tool from the drop-down menu. You can only select tools that are used in your MERLIC Vision App. At the property "Connected Parameter" you may then select the parameter whose value you want to display in the widget.

Connected Parameter:

Select the parameter of the connected tool you want to connect to the widget from the drop-down menu. The list shows only the corresponding parameters of the tool that is selected in the property "Connected Tool". Therefore, you have to make sure that the widget is connected to a tool before selecting a parameter.

Application Example

This widget is used in the following MERLIC Vision App examples:

  • check_bent_leads.mvapp
  • check_correct_filling_on_3d_height_images.mvapp
  • check_pen_parts.mvapp
  • check_presence_of_fuses.mvapp
  • check_single_switches.mvapp
  • classify_and_inspect_wood.mvapp
  • classify_pills.mvapp
  • count_bottles_with_deep_learning.mvapp
  • detect_anomalies_of_bottles.mvapp
  • detect_anomalies_of_bottles_in_the_global_context.mvapp
  • detect_only_scratches_with_photometric_stereo.mvapp
  • detect_scratches_on_metal.mvapp
  • determine_circle_quality.mvapp
  • evaluate_ecc_200_print_quality.mvapp
  • measure_distance_segment_circle_calibrated.mvapp
  • measure_distance_to_center_led.mvapp
  • recognize_color_of_cables.mvapp
  • segment_pill_defects.mvapp
  • segment_pills_by_shape.mvapp