Hi can i ask your expertise on this. i’m trying to call a function from my project script on value changed of my boolean tag. using the script console, it is working. But in value changed of my tag won’t worked.
lotPath = "[.]../../../General/Lot"
hostName = "[.]../../../Hostname"
frequencyPath="[.]../Configuration/Monitoring Frequency"
lot= system.tag.read(lotPath).value
handler= system.tag.read(hostName).value
frequency= system.tag.read(frequencyPath).value
endDate = system.date.now()
if currentValue.value is True:
#Call the uph function from the project script
project.test.alerts.uph(lot, handler, endDate, frequency, force=False)