Message Boards

RE: Quickplot will not run, cannot find .dll file

Joshua Flathers, modified 8 Years ago.

Quickplot will not run, cannot find .dll file

Youngling Posts: 5 Join Date: 9/17/14 Recent Posts
I've installed a Delft3D GUI multiple times. But this time, though everything else appears to work, I cannot seem to get Quickplot to open. I've attached an image showing the error. The .dll file in question is in the appropriate location compared to other GUI installations I have. I've uninstalled/reinstalled the GUI and MCR to no avail. Previous GUI versions that used to load Quickplot now show the same error. I've even copied the file in question from a functioning GUI on a different computer and that did not work either. Help???
Joshua Flathers, modified 7 Years ago.

RE: Quickplot will not run, cannot find .dll file

Youngling Posts: 5 Join Date: 9/17/14 Recent Posts
I am still receiving this error when attempting to load Quickplot through the GUI. However, the answer to this post allowed me to open Quickplot through the command prompt:
http://oss.deltares.nl/web/delft3d/cohesive-sediments-/-muddy-systems/-/message_boards/view_message/493851

Bert Jagers suggested:
"If the folder is part of the path and QUICKPLOT still doesn't load, please open a command window and change to the Delft3D folder in which d3d_qp.exe was installed. Reduce the Windows search path by typing:
set PATH=C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\runtime\win32
and try starting QUICKPLOT by typing
d3d_qp
If it works now then there must be an issue with the full search path that you have on your system"

Executing Quickplot through the command prompt this way worked. Bert then goes on to suggest an issue with the full search path on my system. How do I view, edit, or fix the path and this problem?
Joshua Flathers, modified 7 Years ago.

RE: Quickplot will not run, cannot find .dll file (Answer)

Youngling Posts: 5 Join Date: 9/17/14 Recent Posts
I have a solution. This does not solve my initial problem, my system environment variable path appears to be too long, however this solution is a simple work-around. In summary, I generated a .bat file which sets the path to the .dll file Matlab is complaining about and runs Quickplot, then I changed the appropriate menu configuration .xml file to look for the .bat file instead of the d3d_qp.exe executable. Now I can launch Quickplot through the GUI or from the .bat file I created.

Details:
1. Generate a .bat file:
- Simply create a new text document using any text editor such as notepad.
- Change to the directory of d3d_qp.exe, typically { cd C:\...delft3d_ohmw_4.01.01.rc.03\win32\quickplot\bin\d3d_qp } depending on the location of your GUI.
- Next line, set the path to the .dll file { set PATH=C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\runtime\win32 }
- Finally run d3d_qp.exe by typing that for the next line { d3d_qp }
- After generating this text file, change the extension from .txt to .bat
-Note: The text within { } should be entered on a line in your text editor, i.e., this is three lines of commands.

Now that you have your .bat file, make sure it runs and launches Quickplot.

2. Change the d3d_menu.xml configuration file to use your .bat file instead of d3d_qp.exe
- Navigate to the location of d3d_menu.xml in your GUI directory: C:\...delft3d_ohmw_4.01.01.rc.03\win32\menu\default
- Open the file d3d_menu.xml
- Locate this starting at line 124 (if opened in Textpad):
<button name='QUICKPLOT' description='Postprocessing with QUICKPLOT'>
<command>
$D3D_HOME/$ARCH/quickplot/bin/d3d_qp.exe
</command>
</button>
- Replace the text 'd3d_qp.exe' with 'YourBatchFile.bat'

Now you should be able to open Quickplot through the GUI by clicking the button (or running your .bat file).

I believe I came to this error when updating my GUI version. The old version I had installed a couple of years ago when, apparently, my system environment variable path was not full. Since I've installed the old version, I've installed a lot of software, filling up the env. var. path field. When I went to update my GUI, I re-installed everything including the Matlab Compiler Runtime, which is when my error started. I'd recommend trying NOT to re-install the MCR when updating the GUI, not sure if this is possible, but I think that would alleviate the possibility of what happened here.