Sorry, I am new to Ignition system. I have an issue to use the Express Functions in my Python Script.
import system
StartTime = toDate(skudata.getValueAt(i,0))
got the following error
15:08:27.933 [AWT-EventQueue-0] ERROR Vision.Components.StatusChart - Error invoking extension method.
org.python.core.PyException: Traceback (most recent call last):
File “”, line 41, in getTooltipText
NameError: global name ‘toDate’ is not defined
Am I missing something to call the express function toDate() ?
I have the same issue when I was trying to use the function dateIsBetween()
Thanks for the helps.
Those functions are not python functions. Expression functions are used only in expression bindings or expression tags.
In scripts, you would use the similar functions that start with “system.” The appendices of the manual show what is available.
Consider going through the free online training at Inductive University. That is the best way for newcomers to familiarize themselves with the platform.
2 Likes
Hi Phil,
Thanks for your help…
I concentrate on using the system functions.
I think I almost got it working…
I have run through most of the online training videos of the Inductive University, . However, there is still a lot of things to learn to fill up the gaps when it comes to hands-on.
By the way, I really thank for your helps from the bottom of my hearts.
Simon