Menu

Error when interfacing with MATLAB

Beginners
Viv
2016-10-14
2024-12-13
  • Viv

    Viv - 2016-10-14

    Hello,
    I'm accessing the ODSS engine with MATLAB, and trying to extract specific values from the circuit
    interface after compiling the 123Bus IEEE test case (I'm executing the first script in the cases file Run_IEEE123Bus.dss) . However, although it appears to compiles without problems, I get this error message once I start trying to access the circuit interface, and I'm not sure what it means. Any pointers in the right direction would be great! Thanks!

    (5007) OpenDSS
    Line Type Expected, but another found. Dss Class = Transformer Element name = reg2a


    The Run_IEEE123Bus.dss script being run :

    Compile (IEEE123Master.dss)

    ! 'Compile' differs from "redirect" in that it changes the default directory
    ! to the one in which the referenced file is located.
    ! 'Redirect' returns to the directory from which it was invoked.

    ! After compiling, the next series of script commands modify to the regulator control definitions to
    ! limit the maximum tap change to 1 per solution control iteration. In most cases, this will
    ! allow the standard DSS solution algorithm to better represent an actual control.
    ! Note the time delay is also chnaged. This forces the regulator at the head of the feeder to move first.

    RegControl.creg1a.maxtapchange=1 Delay=15 !Allow only one tap change per solution. This one moves first
    RegControl.creg2a.maxtapchange=1 Delay=30 !Allow only one tap change per solution
    RegControl.creg3a.maxtapchange=1 Delay=30 !Allow only one tap change per solution
    RegControl.creg4a.maxtapchange=1 Delay=30 !Allow only one tap change per solution
    RegControl.creg3c.maxtapchange=1 Delay=30 !Allow only one tap change per solution
    RegControl.creg4b.maxtapchange=1 Delay=30 !Allow only one tap change per solution
    RegControl.creg4c.maxtapchange=1 Delay=30 !Allow only one tap change per solution

    ! The default maximum control iterations is 10. With so many regulators each moving only one tap at a time,
    ! this is insufficient for the 123-bus test case, which will need 15 control iterations for the initial solution.
    ! Therefore, the 'MaxControlIter' option is set to 30 to be safe.

    Set MaxControlIter=30

    ! Solve executes the solution for the present solution mode, which is "snapshot".

    New EnergyMeter.Feeder Line.L115 1

    solve
    Buscoords Buscoords.dat ! load in bus coordinates

    ! Show some selected results

    Plot Profile
    plot profile phases=all

    Show Voltage LN Nodes ! this shows the voltages by node, Line-to-Neutral voltage.
    Show Currents Elements ! this produces a report of the currents, element-by-element.
    Show Powers kva Elements ! This produces a report of the powers, in kVA, element-by-element
    Show taps ! shows the present regulator taps

    Redirect CircuitplottingScripts.DSS

     
  • Collin Griffin

    Collin Griffin - 2024-12-13

    Hello Viv! This is a long shot, but did you ever get this sorted out? I'm also doing some work with the IEE 123 Bus system and encountering the same type of error.

    Thanks!

     
    • Davis Montenegro

      Hello,

      Well, this is a post that is almost 10 years old! I ran this example using the latest version (10.1) and there are no errors/warnings reported.

      I wonder what version are you using for getting this issue. Would you mind to elaborate?

      Best regards,

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.