Simple flashing

<< Click to Display Table of Contents >>

Navigation:  Examples > Object flashing >

Simple flashing

Previous pageReturn to chapter overviewNext page

Let's assume that in our project there is a certain object with a certain parameter (tag). We want the object to flash at 1000ms if the tag value is not "0".

 

1. Create a tag named State:

 

clip0029

 

2. Let’s create an object, let it be a rectangle (instead of a Rectangle there may be another object that is more suitable for your project):

 

rectangleex

3. Now let’s set the Flash property. Let's open the Object properties, go to the "Flash" tab and configure it as we planned above (bind it to State1, set the tag value = 0, comparison type "Teg.PV==Value"). Now, if the State tag value ==0, the result comparison TRUE, set the flash duration =0 (the object does not flash). If the value of the State tag is !=0, the comparison result is FALSE, set the flash duration to 1000ms (the object flashes with a frequency of 1000ms):

 

 

commonflashex

 

4. Let's Run simulation to check the settings:

 

commonflash

 

You can download this project here.