First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
1

DFAX compilation error: 'Unit not open'

asked Jan 31 '3

QuinnP gravatar image

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?

1 answer

Sort by » oldest newest most voted
2

answered Jan 31 '3

QuinnP gravatar image

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.

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Jan 31 '3

Seen: 297 times

Last updated: Jan 30 '23