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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...