Hello I want to create a memory dataset tag which includes all desired info and want to have a script that looks for the value and brings corresponding desired column result for that value. I tried this;
Error executing script.
Traceback (most recent call last):
File “tagevent:valueChanged”, line 2, in valueChanged
NameError: global name ‘lookup’ is not defined
To read the value of a tag you need to use system.tag.readBlocking().
That will return a list of qualified values, so you will also want to pull the value from that. Since your tag is a dataset tag, you will get the whole dataset returned. Code will look something like
I am trying to use ignitions expression function lookup.It is I think the most convinient way of doing what I want. This is basically like an excel vlookup which is exactly what I want. I see this on the ignition manuel here;