Photonics

Photonics

lumerical fdtd command write() doesn’t seem to behave as intended – “overwrite” not acknowledged

    • mfeinst
      Subscriber

      Hi,

      I want to write files from Lumerical data, but I want to overwrite previous content files if applicable. From online documentation (https://support.lumerical.com/hc/en-us/articles/360034411134-write-Script-command) that should be possible by adding "overwrite" in the function arguments. The following two line code is copied from the page linked above, but returns the errors shown below when ran thru my Lumerical FDTD:

      a=linspace(0,2*pi,9);

      write("testfile.txt",num2str(a), "overwrite");

      Error: prompt line 2: write can have at most 2 argument

      Error: prompt line 2: argument list for write command is incorrect

    • Kyle
      Ansys Employee

      Those lines run without error for me with release 2021 R1.4, please try updating your software and running the commands again.
    • mfeinst
      Subscriber
      Okay, good to know. Will try that. Thanks
Viewing 2 reply threads
  • You must be logged in to reply to this topic.