Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Value cannot be null error. expToVisit

autojay
2021-10-17
10 hours ago
  • autojay

    autojay - 2021-10-17

    Hi all

    I came across this error when I tried to open task configuration after I applied RT kernel. Doesn't matter if I logged in or logged out, I still can't open my task configuration. Any ideas why?

    RT kernel details:
    version 5.10.63-rt52-v7+ #1 SMP PREEMPT_RT

    /etc/systemd/system.conf:
    RuntimeWatchdogSec=10
    ShutdownWatchdogSec=10min

    /boot/cmdline.txt:
    dwc_otg.fiq_fsm_enable=0 dwc_otg.fiq_enable=0 dwc_otg.nak_holdoff=0

    /etc/init.d/codesyscontrol:
    do_status
    if [ $? -eq 0 ]; then
    rm $PIDFILE
    echo "Error: Failed to start codesyscontrol"
    exit 1
    else
    ##############################Modified for RT kernel 15/10/2021
    PID=$(cat $PIDFILE)
    taskset -p 1 $PID >>/root/codelog.txt #Set CODESYS to run at designated core (core 1 = 0)
    chrt -f -p $PID>>/root/codelog.txt
    renice -n -20 -p $PID >>/root/codelog.txt # Set the user space value to control priority of task
    tuna --threads $PID --priority=RR:99 #Set to max priority
    IRQBALANCE_BANNED_CPUS=3 irqbalance --foreground --oneshot #Disable interrupts?
    #Extra parameters that could enhance RT...
    echo 0 > /proc/sys/kernel/numa_balancing
    echo never > /sys/kernel/mm/transparent_hugepage/enabled
    echo 0 > /sys/kernel/mm/ksm/run
    #################################################################
    echo "codesyscontrol started"
    fi

    The only workaround so far is to use my previous saved file.

     
  • eschwellinger

    eschwellinger - 2021-10-18

    Hi,
    this is just a CODESYS error project related,
    will be fixed with version 3.5.17.30

     

Log in to post a comment.