AnsweredAssumed Answered

PI UFL

Question asked by VasanthakumarR Champion on May 2, 2019
Latest reply on May 3, 2019 by VasanthakumarR

I am trying to build a UFL interface in which the input file has 7 columns and 5 rows, but I am Interested with First three columns. The interface is working fine except the below scenario.

 

If the Tag name is "A"  or "B" or then we want to subtract 1.5 hrs from the Timestamp and store the value. But we are getting the syntax error. can someone check and advise.

 

Input File Format:

A,24-Apr-2019 00:10:10,100,ABC,12,57,hg

B,24-Apr-2019 00:10:10,120,ABC,13,57,gh

C,24-Apr-2019 00:10:10,140,ABC,14,57,op

D,24-Apr-2019 00:10:10,160,ABC,15,57,vs

E,24-Apr-2019 00:10:10,180,ABC,16,57,qn

 

INI File:

[Data]

Data.FILTER=C1=="*"

Tagname=["(*),*,*,*,*,*,*"]

Timestamp=["*,(*),*,*,*,*,*"]

Value=["*,*,(*),*,*,*,*"]

TimeOffset = "01:30:00"

If( Tagname = "A" OR Tagname = "B") Then

TimeStamp = TimeStamp - TimeOffset

EndIf

StoreInPI(Tagname, ,Timestamp,Value, , )

 

Regards,

Vasanth.

Outcomes