Error initializing emulator: ~ is already in use

I'm trying to run an execute script to program a board. It programs over USB. I have an inject for green led and an inject for red led. When node-red first opens up, the script will successfully load the red program.

But when I press the load green led, I get this error

No idea what this means. All I know is that it thinks the emulator is still in use. I have to restart node-red in order for me to load the green program now.

It is acting as if the port is open and it needs to close. How do i do this in node-red?

[
    {
        "id": "0f2c9cbec6012ead",
        "type": "tab",
        "label": "Flow 4",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "4f77d1c7a8cf1895",
        "type": "exec",
        "z": "0f2c9cbec6012ead",
        "command": "C:\\ti\\ccs1220\\ccs\\ccs_base\\scripting\\examples\\loadti\\loadti -c c:\\ztemp\\MSP430FR2355.ccxml c:\\ztemp\\green\\greenLight.out",
        "addpay": "",
        "append": "",
        "useSpawn": "false",
        "timer": "10",
        "winHide": false,
        "oldrc": false,
        "name": "load green",
        "x": 310,
        "y": 380,
        "wires": [
            [
                "a8f38d45957e9a87"
            ],
            [
                "bba4496ea0953aaf"
            ],
            [
                "5ea0a3268407db7a"
            ]
        ]
    },
    {
        "id": "a8f38d45957e9a87",
        "type": "debug",
        "z": "0f2c9cbec6012ead",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 490,
        "y": 340,
        "wires": []
    },
    {
        "id": "bba4496ea0953aaf",
        "type": "debug",
        "z": "0f2c9cbec6012ead",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 490,
        "y": 380,
        "wires": []
    },
    {
        "id": "5ea0a3268407db7a",
        "type": "debug",
        "z": "0f2c9cbec6012ead",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 490,
        "y": 420,
        "wires": []
    },
    {
        "id": "fde1358da6443016",
        "type": "inject",
        "z": "0f2c9cbec6012ead",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 140,
        "y": 400,
        "wires": [
            [
                "4f77d1c7a8cf1895",
                "45ed97c9373b152d"
            ]
        ]
    },
    {
        "id": "0a8a95279f99ba14",
        "type": "exec",
        "z": "0f2c9cbec6012ead",
        "command": "set PATH=%PATH%;C:\\ti\\ccs1220\\ccs\\ccs_base\\scripting\\examples\\loadti",
        "addpay": "",
        "append": "",
        "useSpawn": "false",
        "timer": "10",
        "winHide": false,
        "oldrc": false,
        "name": "",
        "x": 500,
        "y": 220,
        "wires": [
            [
                "ab9da62e3b18cb50"
            ],
            [
                "3770abf09cf93b5b"
            ],
            [
                "3b4135edf46653ad"
            ]
        ]
    },
    {
        "id": "ab9da62e3b18cb50",
        "type": "debug",
        "z": "0f2c9cbec6012ead",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 930,
        "y": 160,
        "wires": []
    },
    {
        "id": "3770abf09cf93b5b",
        "type": "debug",
        "z": "0f2c9cbec6012ead",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 930,
        "y": 200,
        "wires": []
    },
    {
        "id": "3b4135edf46653ad",
        "type": "debug",
        "z": "0f2c9cbec6012ead",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 930,
        "y": 240,
        "wires": []
    },
    {
        "id": "1fa078df8615737f",
        "type": "inject",
        "z": "0f2c9cbec6012ead",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 120,
        "y": 220,
        "wires": [
            [
                "0a8a95279f99ba14"
            ]
        ]
    },
    {
        "id": "2c182d78c12b5069",
        "type": "exec",
        "z": "0f2c9cbec6012ead",
        "command": "C:\\ti\\ccs1220\\ccs\\ccs_base\\scripting\\examples\\loadti\\loadti -c c:\\ztemp\\MSP430FR2355.ccxml c:\\ztemp\\red\\redLight.out",
        "addpay": "",
        "append": "",
        "useSpawn": "false",
        "timer": "10",
        "winHide": false,
        "oldrc": false,
        "name": "load red",
        "x": 300,
        "y": 560,
        "wires": [
            [
                "ff0d53e00642055c"
            ],
            [
                "19ea640f03747899"
            ],
            [
                "915468deb0bd1bea"
            ]
        ]
    },
    {
        "id": "ff0d53e00642055c",
        "type": "debug",
        "z": "0f2c9cbec6012ead",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 490,
        "y": 520,
        "wires": []
    },
    {
        "id": "19ea640f03747899",
        "type": "debug",
        "z": "0f2c9cbec6012ead",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 490,
        "y": 560,
        "wires": []
    },
    {
        "id": "915468deb0bd1bea",
        "type": "debug",
        "z": "0f2c9cbec6012ead",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 490,
        "y": 600,
        "wires": []
    },
    {
        "id": "e002455f6936f551",
        "type": "inject",
        "z": "0f2c9cbec6012ead",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 120,
        "y": 560,
        "wires": [
            [
                "2c182d78c12b5069",
                "90ab2bda078014aa"
            ]
        ]
    },
    {
        "id": "45ed97c9373b152d",
        "type": "debug",
        "z": "0f2c9cbec6012ead",
        "name": "debug 7",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 320,
        "y": 460,
        "wires": []
    },
    {
        "id": "90ab2bda078014aa",
        "type": "debug",
        "z": "0f2c9cbec6012ead",
        "name": "debug 8",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 300,
        "y": 620,
        "wires": []
    },
    {
        "id": "39f6b831ceacf193",
        "type": "comment",
        "z": "0f2c9cbec6012ead",
        "name": "load green inject",
        "info": "",
        "x": 140,
        "y": 360,
        "wires": []
    },
    {
        "id": "3d150fa7d4cf0831",
        "type": "comment",
        "z": "0f2c9cbec6012ead",
        "name": "load red inject",
        "info": "",
        "x": 110,
        "y": 520,
        "wires": []
    }
]

Thoughts on this?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.