1

DFAX compilation error: 'Unit not open'

When creating a dfax using the PSSE API, the following output is written to console and a terminal is opened requesting input.

Processing the Subsystem Description Data File... Out of file data--switch to terminal input mode

The terminal does not go away regardless of input until I type in 'END', after which the process aborts and the following error message is written to the console:

Unit not open. C:\Users\username\Documents\filename.mon (OpnApplFil/OPNSEA)

What could be causing this error message?

QuinnP's avatar
71
QuinnP
asked 2023-01-30 23:57:54 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

After debugging I identified that the cause was a missing END statement in the last line of the sub file, ending the file as a whole rather than ending a subsystem definition block.

QuinnP's avatar
71
QuinnP
answered 2023-01-30 23:59:32 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer