Help and Advice

Hello, I use Ignition "Vision" and have for years. I have all kinds of windows that monitor/control various equipment across our "Cellular Private Network".

I'm trying to learn "Perspective" but, I'm finding it somewhat different in a lot of things, and I can't seem to find the answers by reading the manual and watching the tutorials in Ignitions web site.

I'm hoping someone can suggest "maybe a better way" than just trying different things and see if they work. I'm open to anythings.

Here's and example: I have 2 buttons that turn a motor on/off ( and that's because I could not figure out which component to use for a toggle operation. The toggle switch in the perspective component is not a good choice) What I would like to see is when the "START" button is pressed a "Label" would say "Running" an when the "STOP" button is pressed the "Label" would now say "Idle"!
Where can I go to learn all about the different "Properties" each component has and how to work with them?

Thanks for any advice/suggestions. I'm just trying to get my head around the different programming technique.

Helpful primer if you haven't read yet

Then you can come here and look up any given component's list of properties and meanings

For your toggle component, on the second link I clicked input pallette (since its a thing that a user can click/adjust)

1 Like

Thanks so much, I will read all of them.

1 Like

Ok, with all the help from this forum I'm finally making headway.

Using the Makers Edition trying to learn perspective.

I have an Opc-Ua server setup that is communicating with my Micro820 plc.
I have a View with just a couple of buttons "Start" and "Stop" all they do is turn a "Bit" on and off in my plc.

Now I have a "Run" bit in my plc setup as my motor so as an example when the start button is pressed the run bit turns on and when the stop button is pressed it will turn the run bit back off.

I want to show the status of the "RUN BIT" on equal "Running" off equal "IDLE".

So I need some type of a "Label" component that I can change text to read like this.
1 or true = Running
0 or false - Idle

Now I would also like the background to change from "Green" when running to "Red" when Idle.

Need some pointers I can't figure out what to use, I have been looking at the Label component but don't know how to make that work like I need.

Thanks

Expression binding on the Label's props.text:

if({[default]path/to/Run}, "Running", "Idle")

Tweak if your tag provider is not called default.

Thanks, I was able to get my Color correct also with binding. I'm beginning to understand how this all works.

1 Like

Note that my solution is not the only way to do this. Just the simplest for this case, IMNSHO. If you have more than two cases, you should consider the case() expression function, or perhaps a Mapping transform.

(Some ways to solve problems are valid, but are foot-gun setups. Avoid the tag() expression function like the plague.)

3 Likes

Thanks for the advice, I will make note of it.