AnsweredAssumed Answered

Convert Batch Time string into Float32 in hours for calculations in AF

Question asked by JacobAWeber on Jul 27, 2018
Latest reply on Jul 27, 2018 by JacobAWeber

Hello everyone!

We have a batch time tag on our fermenters called TFT ("total fermentation time") that is created by the process control system as a string in the format "dd:hh:mm:ss". I am interested in converting this value into a float32 value in seconds that can be used directly for calculations over the time course of the run. So for example, we want to convert a TFT string value of "1:12:30:15" (which is 1 day, 12 hours, 30 minutes, 15 seconds) into a float32 value of 131,415 seconds. From there it would be very easy to convert to hours and perform productivity calculations. Does anyone have an idea of how to use a performance equation or analysis in Asset Framework to accomplish this?