My customer has an existing HMI which his IT guy is printing a Screen from the HMI every thirty seconds and saving it to a Cloud server as a .JPG. His end users are than able to view these .JPG’s on a web page without compromising his internets bandwidth. I am in the process of upgrading his HMI to Ignition and am looking at doing pretty much the same thing, but I am stuck. Here’s where I’m at:
I am using a script from a simple pushbutton to test. My script is as followed:
path = “C:\ktwd\Screen1.jpg”
Works great, but my end product will be a gateway script happening every thirty seconds, which is where my problem is. If I push this pushbutton again I get the “Overwrite File?” box. I need to overwrite this file automatically without answering this message.
Any thoughts. I have dug through all the scripting functions and cannot find anything that would allow me to delete “C:\ktwd\Sceen1.jpg” than save “C:\ktwd\Sceen1.jpg”