Binary file location

Hello every one,
I'm about to make a small modification on a project.
the thing is that we have a botton which is when pressed he opens a png file related to a note in every alarm ( like a help note ) now we added new equipments to the machine et I want to add more png file accorded to the new alarm.
I did the configuration as it was in the old alarms but now I don't know how can I add my .png files to the project ?
I search for the old png related to the old alarm and I don't find them in my project ( maybe im llokng into it in the wrong place ? )
anyway : here is my script and it working for all the old ones ( openaidealarm )
If someone can tell me how can I procede !
Thanks

Please post code, not pictures of code. It helps speed up responses as people can just copy/paste instead of trying to read a screenshot. Please see Wiki - how to post code on this forum.

The code you posted is only opening a popup window. You would need to open that window in the designer to see what is configured on it. The popup window appears to be generic as the code is passing the alarm number to the window when opening it.

Inspect that window in the designer to see if there are any scripts or additional bindings on the window that fetch the PNG that you see.

Also, check the image management tool in the designer to see if the pictures are stored there.

From the cutoff section at the top of the screenshot, the script in question is walking the filesystem to retrieve something.

You will need to determine:

  1. Where this script is getting called (gateway vs Vision client)
  2. What path argument is being provided

In order to find where these images might be.

And then lament the person before you who went this route instead of using Ignition's built in image management tool.

3 Likes

I'm agree with you,
I found the solution yesterday.
The images are converted from png to binary and stocked on SQL server.
It was hard to find :stuck_out_tongue:

but I have a question, how can I know if it is called from the gateway or vision client ?

You typed "Binnay" in your question title. Did you mean "binary"? If so, please edit [the pencil icon] and fix it. It may help someone else in future.

You just have to look at where the code is.

If it's in the section of the project titled 'Gateway Event Scripts'...it's being invoked from the gateway, relative to whatever type of event (on a timer, when a script message comes in, when a tag changes, etc). If it's somewhere inside your Vision project, in a window, template, or in the 'Client Event Scripts' section, then it's being invoked on the local machine.

Tag scripts (except for Vision's client tags) are also running on the gateway.