deleting log data


Recommended Posts

No, Channels are designed so that you can't remove data.  You would need to copy it and clean up the data, or simply clean up the data before it gets to the channel.   To copy it to another channel (say a Test channel with 0 Timing), you could do in a sequence:

private tempData = PU_Rain_C
tempData.removeAt(53,1) // note that I remove the higher index data first
tempData.removeAt(48,1) 
myNewChannel.clearHistory()
myNewChannel.addValue(tempData)

 

Link to comment
Share on other sites

I have a filter in the sequence:
PU_data3 = parse(datain,3,",")
            //? PU_data3
            if((PU_data3 > PU_RAIN_C[0]) || (PU_data3 == PU_RAIN_C[0]))
               PU_data3.time = systime()
               PU_RAIN_C.addValue(PU_data3)                    //pick out RAIN COUNTS
            ? "RAIN = " + PU_data3
            endif

 

But this filter does not catch NaN

I tried the following :

PU_data3 = parse(datain,3,",")
            //? PU_data3
            if((PU_data3 > PU_RAIN_C[0]) || (PU_data3 == PU_RAIN_C[0]) || (PU_data3 == NaN))
               PU_data3.time = systime()
               PU_RAIN_C.addValue(PU_data3)                    //pick out RAIN COUNTS
            ? "RAIN = " + PU_data3
            endif

and I get the following error.

C1085 Function without parenthesis: X_ONE_SEQUENCE Line 262

any suggestions appreciated

Thanks

Bill

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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.

 Share