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.

DataName.FieldName arithmatic


canineaussie Mar 27, 2013 12:29 AM

Am having trouble getting DataName.FieldName to work. Some Code is below. ElCP and WLCP are just zeros in the table. This is in a CR9000X.

DataTable (RawWt,1,-1)
DataInterval (0,1,Hr,10)
Sample (1,Julian_Day,FP2)
Sample (1,Hour_of_Day,UINT4)
Average (1,ELC,IEEE4,False)
Average (1,WLC,IEEE4,False)
Sample (1,EADDED,IEEE4)
Sample (1,WADDED,IEEE4)
Sample (1,ELCP(),IEEE4)
Sample (1,WLCP(),IEEE4)
Sample (1,Resid,FP2)
EndTable

ELCP()=RawWt.ELC_avg(1,2)-RawWt.ELC_avg(1,1)
WLCP()=RawWt.WLC_avg(1,2)-RawWt.WLC_avg(1,1)
ELCP()=ELCP()*0.1252 'Convert to mm units for processing - /998.65/8*1000
WLCP()=WLCP()*0.1252 'Convert to mm units for processing - /998.65/8*1000
If ELCP() > 0 Then
ELCP()=EADDED
EndIf
If WLCP() > 0 Then
WLCP()=WADDED
EndIf
LCP()=(EADDED + WADDED)*0.5
Resid=LCP()*0.5 'To account for two trees in the lysimeter
ResT(1)=Resid*0.35 'TREATMENT LEVELS
ResT(2)=Resid*0.5 'TREATMENT LEVELS
ResT(3)=Resid*0.75 'TREATMENT LEVELS
ResT(4)=Resid 'TREATMENT LEVELS

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