Visibility animation in Factory talk view

sanfre

Member
Join Date
Mar 2016
Location
Aqui
Posts
4
Hi all.

My problem is: I need to setup a visibility animation in with the values to be compared come from a parameter file. One of the parameter is a interger tag and the other is a constant. When I put the expression like #100=#101 give the error in runtime(#100=Integer Tag, #101 = constant). Any ideas?
 
Try #100 == #101.

A single "=" sign is a "set" instruction, i.e. #100 = #101 means "set #101 to the value of #100".

A double equals sign is an "equal" comparator, which is what you appear to be trying to do.
 
Does not work. The help of ftv says:

"In the Parameters editor, for each tag placeholder in the graphic display, type a definition using the format:
<#number>=<string> where string can be a tag or folder name, or any part of a tag name, for any kind of tag."

Apparently any thing on the right of equal sign in a parameter file is considered to be string. So I'm try to compare one integer against a string. I think this is the error cause.
 
Correct - when creating your parameter file, you need to use a single equals sign, because you are "setting" the values.

I believe you're right in your assumption about comparing to a string. Historically when I've had a need to compare against constants in FTView, I ended up creating a tag folder called "constants" and then putting 100 memory tags in there, called 00, 01, 02...99, with values to match. Then I just used e.g. Constants/53 in my expression. A bit of a pain for sure, but it's FTView so ¯\_(ツ)_/¯

When creating your visibility expression, you will need to use a double equals to compare your two values.
 
Last edited:
You can use constants in your visibility expression though - would that be a possibility for your application?
 
It is possible but what I was trying to do is a global objetc that take this parameters in run time. What I can do now is folow your first idea or create each object with the const that I need.
 

Similar Topics

I am trying to hide a button unless 2 possible users are logged in AND a DINT in my processor is == 0. I can't seem to work out the syntax with...
Replies
0
Views
1,341
FactoryTalk View Studio - Machine Edition Version 7.00.00(CPR 9 SR 6) PanelView Plus600 I have created a few small PanelView projects and often...
Replies
5
Views
4,597
Hi All, Our FT View ME application has 2 PV+ 1000's and a SLC-5/05 processor. One of the PVs will be used as a remote viewing terminal, one...
Replies
6
Views
5,000
Hi All, Been a while since I've been on the forum. I've spent the last 2 years working pretty heavily in Wonderware InTouch and now have to...
Replies
8
Views
9,534
Hi, I wanted to ask is there a way to have a visibility expression use the IP address of the HMI (Dynics, not PV) to show certain elements? The...
Replies
3
Views
171
Back
Top Bottom