How to display images from shared memory in mappview interface

Hello Everyone
I can able to display image from media folder.
But
Actully i want to display images from shared memory.

please help me resolve this issue.

Shared memory is not possible, but a shared folder (CIFS) should be possible.
See following link:

1 Like

Hi,

I can be able to

  1. Display the image from Project image folder in mappview image.
  2. Display the image from Local PC in mappview using FileIO.
    File device
    Name: HD0
    path: C:\test
    Used image list widget
    ImageList : [‘/FileDevice:HD0/Sample/App50.PNG’] &

Select index: brease::ImageList1,selectedIndex

With above configuration I can be able to display the image in mapview & browsed in chrome browser its working well.

but I couldn’t be able to display the image from shared folder in mappview.
fyr find below details:

  1. Shared folder path: \PC0011015\Users\Dell\Desktop\mapview_img
  2. Ip: 10.18.21.22 & i refered below help document but not yet working.

please help m,e to resolve this issue

You will need to use DevLink from FileIO.
With this DevLink you can create a file device, which is linked to the windows shared folder. (UserName, Password)

https://help.br-automation.com/#/en/4/libraries%2Ffileio%2Ffbks%2Fdevlink.html

image

In stead of SNAME also SIP can be used. (/SIP=10.18.21.22)

Hi,
I added

but SIP not defined error came

image

Please help me to resolve this issue

Your program syntax is not correct and faulty.
It seem to mix up single and double quotes and pDevice and pParam are pointers to strings.
The Devlink should only be called until status <> ERR_FUB_BUSY

PROGRAM _CYCLIC
	CASE Step OF
		0:
			DevLink_0(enable := TRUE, pDevice := ADR('HD0'), pParam := ADR('/SIP=10.18.21.22 /PROTOCOL=cifs /DOMAIN=domain /SHARE=testdir /USER=max /PASSWORD=passw'));
			IF (DevLink_0.status = ERR_OK) THEN
				Step := 1;
			ELSIF (DevLink_0.status <> ERR_FUB_BUSY) THEN
				Step := 99;
			END_IF
		1:
			;
		99:
			;
	END_CASE
END_PROGRAM

This is knowledge which can be learned at trainings in the local subsidiaries:
https://www.br-automation.com/en/academy/dates-and-registration/