How to display smart camera images in real time in mappView interface?

Hi Wenjie!

From my point of view there are two solutions to this:

  • First one, no official library, but easiest to implement
  • Second one, official approach

First solution

From B&R Spain @javier.novella developed a library with two function blocks: ViEsGetCameraImage (uploads the camera image to a buffer) and ViEsStoreImage (saves the camera image in a File Device). Those function blocks are really easy to implement. The library has documentation included, to open press F1 above the library in AS, inside the help you will find also examples. Afterwards, once you have the image saved you can show it in mappView visualization. I attach it here:
ViEsTools_v1.0.0.zip (160.4 KB)

Second solution

From mappVision 5.20 function block ViBaseGetImage was released.

With function block ViBaseGetImage, the last acquired image can be retrieved from the camera and stored in a data buffer in DRAM memory on the PLC. This image can then be displayed in a mapp View HMI application or persisted using library FileIO.

There is an entire use case of this:
B&R Online Help - Use cases: Backing up, displaying or providing the camera image

Whatever solution you choose, please share it with us. Good luck :slight_smile:

4 Likes