Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Timer for the remaining time to the next measurement


kastelan Feb 25, 2019 09:23 AM

Hi There 

sorry for my english

i have a program for a scale in the variable interval and i have to know when the next measurement will be done to realize the countdown timer to the program below,

 

'Main Program
BeginProg

  vzorek=0                   
  sampVar=0

 
	'Main Scan
	Scan(basicInterval,Sec,1,0) 	
    
     

    Select Case sampVar        
      
      Case 0 To 12             
        Call odmer()
        CallTable Table1
	      CallTable Table2
	      CallTable ES2data
	      loop
	      
	      vzorek=vzorek+1
		    
      Case 13 To 60            
        If sampVar MOD 3 = 0 Then   
          Call odmer()
          CallTable Table1
	        CallTable Table2
	        CallTable ES2data
	    
	        vzorek=vzorek+1
	      EndIf
		    
		  Case 61 To 360       
		    If sampVar MOD 6 = 0 Then
		      Call odmer()
          CallTable Table1
	        CallTable Table2
	        CallTable ES2data
	       
	        vzorek=vzorek+1
		    EndIf
		    
      Case Is > 360          
		    If sampVar MOD 60 = 0 Then
		      Call odmer()
          CallTable Table1
	        CallTable Table2
	        CallTable ES2data
	      
	        vzorek=vzorek+1
		    EndIf
		    
		  EndSelect   
		  
      sampVar=sampVar+1

 EndIf
 
	NextScan
EndProg

 

thanks for every advice

Log in or register to post/reply in the forum.