Jump to content
s_avinash_s

data change based on rotational

Recommended Posts

Hi 

I have a table , In first column i need to update a dynamic data in rotating format  for 5 values every 1 sec.

I mean like, for 1 sec temp1 will be displayed, for next  second temp2 should be dispalyed,

for thirs second, temp3 should be displayed  etc.

How to proceed with this

Share this post


Link to post
Share on other sites

One possible implementation is to have a counter that's incremented each interval.

Then the corresponding variable is displayed.

Share this post


Link to post
Share on other sites

IF you insert the data into a element, you can use that elements index to remove the last if present, move the other elements and it content to the next, and insert new at top, you don't require counter as such, just decrementing loop to move values down each second;

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×