I'm trying to capture an image with a Cognex Dimensioner that saves the .bmp image files in a folder using FTP and then having a local HTTP server that Ignition pulls the latest file's URL from. The URL is then put into a Tag for a Perspective image source to use. I'm having been trying to do this through an Gateway Event Script but haven't had any success getting usable data just a byte array from the HTML. Is there a good tool for what I'm trying to accomplish or a correct way to write the script to get a usable URL?
You have to parse the HTML (I recommend using java's XML tools via my utility script xml.py), then finding the embedded image element. Extract the src
attribute from that to place in your tag.