You are here: Start » Program Examples » HMI Run Run once easy

HMI Run Run once easy

Aim

The task is to create a simple application where user activates an inspection mode through the HMI Panel. It can be run continously or once.

Hints

The state of the application is modified with the Program Control Buttons.

Solution (AVS)

  1. Add the GrabImage_FromFiles filter to the ACQUIRE section.

  2. Inside the PROCESS section create a Step macrofilter named ProcessImage. Inside this step:

  3. Return to the Main macrofilter. Connect the step Image input to the GrabImage_FromFiles output.

  4. Open the HMI Designer. It is available in a View tab, or in a Toolbar.

  5. To allow the user to set the lower limit of threshold range, add to the HMI the TrackBar control available in the Controls category of HMI Controls.

    • Connect its outValue with the inMinValue inside the ProcessImage macrofilter.
  6. Add to the HMI ProgramControlBox control to let the user modify the state of the application.

  7. Add to the HMI a VideoBox control. Connect its Image input to the outMonoImage output inside the ProcessImage macrofilter.

  8. Add the Delay filter in the Main Task macrofilter and set the inTime to 50. This filter suspends the program workflow for 50 milliseconds.

Macrofilter Main.

Macrofilter ProcessImage.

Further Readings