Why Can't I connect my Serial Dat to Dat Execute

Error: Input Dat must be text only.
Warning: Cannot find function named “onReceive” in DatExecute

Serial 1 is connected with the Arduino button, once pressed, Serial 1 receives message"1".
From common, the content language is already set to “plain text”.

This is the code I put in Dat execute dat:

def onTableChange(dat):
    val = dat[-1,0].val.strip()
    if val == "1":
        ch = op('stage')
        cur = ch['stage']
        ch.par.value0 = cur + 1
    return

I have tried no matter which datOP I connect to, it is always the same error.

Hey, can you post your .toe file so we can take a closer look?