I have this expression here:
How do I add the UDT params to this expression? Is this right, since the text isnt purple.
I have this expression here:
How do I add the UDT params to this expression? Is this right, since the text isnt purple.
Usually the binding preview at the bottom of the binding editor will show you if your expression is working and gives you a red error message if not. Hovering over the error message will give you a clue what the problem is.
Change
{[.]L{Line_Num]_SideExtr_{Extr_Num} ...
to
{[.]L{Line_Num] + "_SideExtr_" + {Extr_Num} ...
Like this?
{[.]L{Line_Num] + "_SideExtr_" + {Extr_Num] + "__Clr_Profile_Pump"}>{[.]L{Line_Num] + "_SideExtr_" + {Extr_Num] + "__Bopu_PID_Tmp_Ctrl_Spt"}||{[.]L{Line_Num] + "_SideExtr_" + {Extr_Num] + "__Clr_Profile_Pump"}<{[.]L{Line_Num] + "_SideExtr_" + {Extr_Num] + "__Bopu_PID_Tmp_Ctrl_Spt"}
Yes. Did you check the result in the Binding Preview?
Tip: you can use line breaks (and comments) in your expressions to make them more readable.
{[.]L{Line_Num] + "_SideExtr_" + {Extr_Num] + "__Clr_Profile_Pump"}
> {[.]L{Line_Num] + "_SideExtr_" + {Extr_Num] + "__Bopu_PID_Tmp_Ctrl_Spt"}
|| {[.]L{Line_Num] + "_SideExtr_" + {Extr_Num] + "__Clr_Profile_Pump"}
< {[.]L{Line_Num] + "_SideExtr_" + {Extr_Num] + "__Bopu_PID_Tmp_Ctrl_Spt"}
I'd also add in a space each side of the >
and ||
operators to let your expressions breath!
The binding preview isnt showing. Comparing to what you have here I found my error. Thank you @Transistor
That's odd. It would be worth figuring out why not. Post a (nicely cropped) screengrab of the binding editor window.
Don't forget to mark the solution - if you're happy that was the solution.
I think @Transistor got confused by you tagging Perspective when you're not talking about perspective at all, but binding expressions in presumably an expression tag? Maybe?
To read an indirect tag in the expression language, you need to use the tag()
function. Eg
tag('[.]L' + {Line_Num} + '_SideExtr_' + {Extr_Num}...)
However, I'm not sure if the tag function supports relative references (I've never tried it), and I'm also not entirely sure the tag function is supported by an expression tag expression
Although you said you found your error... It'd be nice if you shared what it was, otherwise this whole topic will be useless to someone in the future with the same issue