Just looking for effective ways to measure the duration an opc tag is high then write results to the database. Is it better to do it in plc with timer or is there an easier way to do it in ignition with scripting or memory tags.
It is far more robust to simply record the transitions. Then there are a number of tools in databases to give you precise answers. And Ignition's historian has an aggregation function for similar results.