Tuesday, June 17, 2008

OPNET install tips (UPDATED)

In today's post I'm going to insert some detail about OPNET tips in installation.
I think it's better to omit details about the actual installation procedure - OPNET's guide is complete in this part, and I think it's straightforward installing it. I'll refer as usual to version 11.5.A, using Linux OpenSuse 10.2.

So here's what I do after I have the software installed and the licenses set up.
First, I create a folder (e.g., op_prj1) in which I'll insert everything about a single project. I then create a batch file, opnet.sh, containing the line
modeler -opnet_user_home .
When executing this file (./opnet.sh using bash), I have opnet running in the op_prj1 directory. This allows me to separate files for different projects.

Then, after having executed ./opnet.sh, you'll have your instance of the OPNET modeler up and running. I then suggest adding the current directory (again, op_prj1) as the main model directory: go to the File menu, then Model Files, and finally Add model directory. The file selection dialog should open at the current directory. Click Choose, and then in the next dialog check Include all subdirectories and Make this the default directory, and then click ok.
From now on, your new models and sources will be created in this directory, so that you can easily make backups, avoid different projects having mixed files etc...

I also suggest changing something in the preferences (these will be saved locally, in your current directory). These can be accessed by the Edit menu, then Preferences. Search "beep" using the text area: I usually set beep_count_confirm and beep_count_error to 0, to get rid of those annoying beeps that warn you of some condition while simulating.
I also suggest modifying compiler flags in order to speed up your simulations a bit: there are many web sites discussing these things, refer to other sources in the web to optimize for your platform. You should modify comp_flags_common and comp_flags_optim. It's safe to add "-pipe" in comp_flags_common as this should only speed up the compilation a little bit, and to optimize for your specific architecture in comp_flags_optim (I added "-march=pentium4 -ftree-vectorizer-verbose=0 -ftree-vectorize" to optimize for my pentium4 cpu).

Furthermore, I modify the preference force_posix_locale to TRUE. This seems to fix some strange rendering problem I sometimes had when using the simulator.

The last thing to do, is set up temporary files cleanup. When working with the modeler, many log, temporary files and backups are generated and not automatically removed.
To have old files deleted, open the modeler, then click on the file menu, and "Delete Temporary Files...". In the dialog, you can setup your preferences, I suggest setting a lifetime of some day as I never had to recur to these files.

I hope this helps! I'll update this post if I find something else worth to be listed or if I receive some new suggestion.

5 comments:

Tulga said...

Hi, did u install it on Windows? what version of VS have you tried?

Claudio Vicari said...

Yes I used it on windows, before the release of the first Linux version.
I used a free VS release (express edition?), the only thing you really need is the compiler with the libraries, that comes with visual studio itself.

Unknown said...

Hi, I get the following error when I compile. I have VS2005 and I did read FAQ1685 and have set the environment variables required. I am using 14.5. Can you help me out? You know website with the info ?

Thanks

AKhila
<<< Recoverable Error >>>
Object repository construction failed
due to errors encountered by the binder program (bind_so_msvc)
T (0), EV (-), MOD (NONE), PROC (sim_load_repos_rebuild)
----
Errors reported by the binder program follow
(these messages have been saved in (Z:\op_admin\tmp\bind_err_2520):
LINK: extra operand `/MACHINE:IX86'
Try `LINK --help' for more information.

----
<<< Program Abort >>>
Error encountered rebuilding repository -- unable to proceed
T (0), EV (-), MOD (NONE), PROC (sim_load_repos_load)

----

Xapi said...

TO AKHILA:

I had the same error than you:

"LINK: extra operand `/MACHINE:IX86'" and it was due that I had the cygwin compiler in the system path....

Unknown said...

Hi,

I haven't a cygwin compiler and I had the same error.
Can you help me out?

Thanks in advance.