Automating disco party

Env - Windows 7 x64

I'm going to use my BlinkyTape with Disco Party to add some extra fun to a Virtual Pinball cabinet. Everything is functional but I would like to hard code it to a port so no interaction is required. Then I can run it from the startup folder in the background. What would be the recommend way of doing this? (Programming skills - novice.)

Thanks,
Josh

Comments

  • I was hoping disabling the serial selector in DiscoParty then defaulting m_portName = "COM3"; would do it. It looks like it must pass the random(?) associated m_outPort.port as well though.
  • I also tried the following. It correctly uses COM3 but says the port is busy. Running it from the original SerialSelector doesn't do that though.

    String myPort = null;
    for(String sN : Serial.list()) {
    if (sN.contains("COM3")) {
    myPort = sN;
    }
    }

    bts.add(new BlinkyTape(this, myPort, numberOfLEDs));
    }

    Connecting to BlinkyTape on: COM3
    LedOutput: Exception while making serial port: java.lang.RuntimeException: Error opening serial port COM3: Port busy
    java.lang.NullPointerException
    at processing.mode.java.runner.Runner.findException(Runner.java:926)
    at processing.mode.java.runner.Runner.reportException(Runner.java:871)
    at processing.mode.java.runner.Runner.exceptionEvent(Runner.java:797)
    at processing.mode.java.runner.Runner$2.run(Runner.java:686)
  • Errors like this are sometimes mometary - unplug and replug the tape, try again. The Java serial stuff can be a little buggy. Unless you're consistently getting the error?
Sign In or Register to comment.