Questions and Answers

0 Like 1 Dislike

Roshan Sebastian

Running in MATLAB

Have extracted the file and began to run nmos_in.m, but it is showing error as 

Error using fprintf
Invalid file identifier. Use fopen to generate a valid file identifier.

Error in saveoutput_rappture (line 166)
fprintf(fidxml,'\n');

Error in nmos_in (line 569)
        saveoutput_rappture(Ec,Ne,Ie,Ne_sub,E_sub,Te_sub,converge,Vd)
 

Kindly help me out

Report abuse

1 Responses

  1. 0 Like 0 Dislike

    Xufeng Wang

    Hi Roshan,

    It is the first time I heard about this issue, but I think it may be easy to debug it from your side.

    Perhaps check through the script and see if "fidxml" is defined at all? Maybe it is accidentally hidden or removed somewhere. Possibly try to do a "fidxml = fopen" to just assign a file ID to "fidxml"?

    This particular routine is not critical to the program; it is used to print out outputs in a format that can be read by the GUI. You can even remove these command if you are running nanoMOS as a standalone  :)

    Regards,

    Xufeng

    Reply Report abuse

    Please login to answer the question.

    1. 0 Like 0 Dislike

      Anonymous

      The code is defined as follows in  saveoutput_rappture.m:

      xmloutFile = strcat('xml','.out');
      fidxml = fopen(xmloutFile,'wt');
      fprintf(fidxml,'<?xml version="4.0"?>\n');
      fprintf(fidxml,'<run>\n');
      fprintf(fidxml,'<output>\n');

      in

      Reply Report abuse

      Please login to answer the question.

    2. 0 Like 0 Dislike

      Roshan Sebastian

      The code is defined as follows in  saveoutput_rappture.m:

      xmloutFile = strcat('xml','.out');
      fidxml = fopen(xmloutFile,'wt');
      fprintf(fidxml,'<?xml version="4.0"?>\n');
      fprintf(fidxml,'<run>\n');
      fprintf(fidxml,'<output>\n');

      Reply Report abuse

      Please login to answer the question.

      1. 0 Like 0 Dislike

        Anonymous

        Hi Roshan

         

        May I know which version of NanoMOS are you using?

        Report abuse