kedi Posted August 9, 2021 Share Posted August 9, 2021 1 global l=4320 // 12 hours of 10 second samples 2 global A1,A2,A3,A4,A5,TA1,TA2,TA3,TA4,TA5 3 while (l>0) 4 delay(10) 5 A1=(read(a1)/10) 6 A2=(read(a2)/10) 7 A3=(read(a3)/10) 8 A4=(read(a4)/10) 9 A5=(read(a5)/10) 10 TA1=(TA1+A1) 11 TA2=(TA2+A2) 11 TA3=(TA3+A3) 12 TA4=(TA4+A4) 13 TA5=(TA5+A5) 14 l-- 15 endwhile Keep getting this error in spite of trying other variations on declaring the variables. If I declare A1 and the other variables as A1=0, etc, up in line 1, the C1086 error indicates the error being in line 1. What am I doing wrong with the variables? a1 to a5 are channel names. C1086 One of the parameters was empty: DischargeWH Line 5 - Uncaught error in sequence DischargeWH Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.