I’m new to ignition but have used other scada programs in the past. there are two things I want to be implemented but i’m having trouble implementing them
- I’m trying to make multiple sounds play from a single multi-state button.
i have two states open and close. When I push open on the button it should play the opening sound and when I push closed it should play the closing sound. Currently I have tried to script around the problem but it either doesn’t play the sound at all (has an error that it can’t find the file) or plays both at once. - I have various labels that display values read in from a plc. I need to have these labels flash (or even just change the color) if they are below a set-point that can be changed at anytime in the client from a numeric text field. I did achieve changing the color of the text in the label but it didn’t function reliably.
in both cases above I was using if statements to check if the required needs where met.
i.e in the first case:
if control value = 1:
play opening sound
else
play closing sound
or in the second case I was using:
if setpoint > labelValue:
change color to red
else
change color to blue
is my logic wrong or is there any better way to implement this?