Canadian TV, Computing and Home Theatre Forums banner
321 - 340 of 1,333 Posts
What do you mean lopsided?
Pictures are much easier to explain. This is your nec file with the EX center changed to segment 15, for even more lopsidedness, heh.

Image


or this, when the EX center is changed to segment 7, the other way

Image


Instead of this, when its at the center, ie segment 11, the correct way.

Image


Basically, I think that lopsided effect may be what happens if you connected up a balun with one lead much shorter than the other. Ill have to test that out in real life someday.
 
A recent post by Arie Voors on the 4nec2 forum regarding AGT:

cocytuss wrote:
"OK I am wondering why on earth can do I get AGT 1.0"

Arie wrote:
Probably you did not specify a small enough resolution in the 'Generate (F7)' window.

When using a 5 degree resolution all the nulls in the pattern will not show up. Thus creating a false AGT value.
When using a 2 degree reolution AGT will be much better.

All the nulls in the pattern are created because of the height of some 8 wavelengths above ground.
 
like the gain is coming off the back side of the antenna?
Heres the channel 7 example of the back flip on your NEC file, so you can see what to look for on a "flip".

Image


The zero degree direction is towards the transmitter on the horizontal plot. The gain in that direction is 6.93 dbi. The gain in the 180 degree opposite direction is 7.41 dbi.
 
Just some more notes on 4nec2's optimizer:

In exploring the "channel peaked" extended Gray Hovermanns, I ran into the workaround for something that's been nagging me about 4nec2 for a while. when using the hill climbing optimizer, the 'first step' is generally 10%, and this is usually a step that completely destroys the model's performance, making it measure the local partial derivatives all over again. So I went into the Settings->Optimizer/Eval->Max-initial stepsize and set it to 0.5% instead.

The 10% value makes a lot more sense if you're dealing with a completely generic model that isn't near where you think you want to be. But if you're trying to re-scale a model, the smaller stepsize make a lot more sense.

Finally, since I know that the first minimum the optimizer finds is not likely to be the best, I add a random +-10% to all my optimization variables and keep doing successive optimization runs, saving the results with the dB and swr in the name so that I can easily tell which is the 'best'. Now I just have to move my XGH9 with 18.1 dB gain at UHF Channel 25 into the real world... (and give up and cry if it doesn't get me my PBS)
 
I tried going to the site for 4nec2 and my anti-virus kicks in to abort connection because the site is infected with:

HTML:Iframe-inf

Some kind of worm it says.
 
What default settings to change in 4nec2?

Before posting a large design here to find out why the frequency sweep is dying on me, I decided to upgrade my 1 year-old 4nec2 (v5.7.3) to the latest (v5.7.5) and see if that solves the problem. It might be due to running under WINE in linux. So now I have to do the settings all over again... have I caught everything???
  • Change editor default to "NEC editor" (maybe optional)
  • Input power; leave it at 1000
  • Char impedance; change to 300
  • Phi/Azim unit; leave as "Theta/Phi"
  • Length unit; change to "inches"
  • Radius unit; change to "Inch/AWG"
  • NEC-engine
    • leave as nec2dXS*.exe
    • leave "Manual select" checked
    • leave "Nr of segments" at 7000
  • Memory usage. Any ideas? I'm running 4nec2 under WINE in linux, on a machine with 2 gigs of ram.
 
Change editor default to "NEC editor" (maybe optional)
Well, I constantly change between that and all the other edit options, depending on purpose.
NEC-engine

* leave as nec2dXS*.exe
* leave "Manual select" checked
* leave "Nr of segments" at 7000
And you did download and copy over the large segment engine ? I stick in 11000 for Nr of segments.

Memory usage. Any ideas?
Basically, I leave as is until I get a error message that says I need to increase the max size of the particular item.
 
Thank you for this. I hope the developer has not lost his work. Because of the current lack of website, there are no instructions available. What I need to know is whether I can likely just run a setup program and have it lead me through the process, or if trying that might be ineffective or worse. If all will become clear from reading a document file that will be created when I run one of the setup files, please let me know that.

I am completely new to this, and don't know whether there are incompatibilities between parts, or orders in which files must be installed. The comments in the changes lists from the NEC archive suggest that order of installation is/was important.

If I were to install the 5.7.5 version on a vista machine, I gather from the comment above that I should download 4nec2x.zip, but is this instead of or as well as 4nec2.zip? Each zip archive seems to contain only the setup_4nec2[x].exe file of about the same size, so I suppose I would run that.

Does this contain only the 4nec2 shell, and not the nec2 engine? The nec2dxsVM.zip file does seem to contain all the other small nec2 files. Are these special purpose add-ons, or should they all be run to produce the nec2 engine?
 
1,2,3 and 4

1. Run Setup_4nec2.exe and select your target directory(folder).
2. Run Setup_4nec2x.exe and select the SAME target directory(folder).
3. Unzip Nec2dXS_VM.zip into the \exe sub-directory(folder) of your target directory(folder). There should be some duplicates.
4. Download:
http://wireless.ictp.it/school_2005/download/nec2/nec_part1.pdf
http://wireless.ictp.it/school_2005/download/nec2/nec_part2.pdf
http://wireless.ictp.it/school_2005/download/nec2/nec_part3.pdf
http://wireless.ictp.it/school_2005/download/nec2/nec_part4.pdf
and start reading.....
 
From the readmefirst.txt file:

Code:
To install the 4nec2 or 4nec2X program, follow the below steps.
---------------------------------------------------------------

1) Extract the setup_4nec2.exe program from the 4nec2v53.zip file and copy or move
   it into a temporary folder.

2) Double click the setup_4nec2.exe program. This wil automatically install 4nec2.exe
   and other required files used by the 4nec2 default package.

3) If real-time 3D rendering is required, extract the setup_4nec2X.exe program from 
   the 4nec2X53.zip file and move or copy it into a temporary folder.

4) Double click the setupX.exe program. This wil automatically add the 4nec2X.exe
   program and other extensions to the your ../4nec2/exe folder.

5) BE SURE YOU SPECIFIED THE SAME FOLDER WITH THE 4nec2X INSTALL (e.g. C:\4nec2)
   AS SPECIFIED WITH THE DEFAULT INSTALL.

6) Double click any *.nec file, select 'Other' in the 'Open with' window and browse
   for your ..\4nec2\exe\4nec2.exe program to automatically start 4nec2 when
   double-clicking any *.nec file.

7) When using 4nec2 together with a licensed Nec-4 engine instead of the default 
   public-domain Nec-2 engines, read below item C) first.

8) When using 4nec2X together with Multinec, please rename the file 4nec2X.exe to
   4nec2.exe

9) In case of difficulties running the 4nec2(X) program, please read the below notes.


*****************************************************************************************


!! ==>	With version 5.3 and later one can use hardware-acceleration provided by your
	graphics-card to speed-up the 3D visualization and view the geometry structure
	in real-time 3D. To use this provision you must run the 4nec2X extended version 
	executable.  This 4nec2X executable is available through the 4nec2X*.zip 
	file. 

	Although this real-time rendering is available for all systems ranging from win-
	dows-95 to the latest -XP systems it is recommended to use it only on systems
	which incorporate one of the more modern graphics-cards. This because the older 
	cards might not be compatible with the graphics-software used by 4nec2X.

	If this is the fact you probably have to stick on the 4nec2 standard version,
	but before deciding to do so, please check if your desktop color-setting
	is set to 256 colors. If so, please change to 16 bit colors and try again.

	To be able to run the 4nec2X eXtended version, the microsoft DirectX software
	installed on your system (used for 3D rendering) must be Version 8.0 or later. 
	The check your current version, use 'DirectX-version' on the 4nec2 'Help' menu
	or run the GetDxVersion.exe program, located in the ..\4nec2\EXE folder.

	If DirectX version 7.x or before is installed, please download the latest 
	DirectX version from www.microsoft.com and install this on your system. Most 
	modern computer-systems (2001 and up) should have an 8.0 or later version 
	already available.
	Note that, according the microsoft website, after installation of DirectX8.1
	or later this version can not be removed anymore, so read carefully what is 
	written about this on the microsoft DirectX download-page

	If you are still experiencing problems, be sure you are using the latest 
	drivers belonging to you graphics-card. Consult the manufacturers website 
	to check for this.

	The DirectX based 4nec2 version does not run on windows-NT, because windows-
	NT does not allow the installation of the DirectX package.

	You can get additional DirectX diagnostic information by running/opening the 
	DXDIAG tool from 'Start->Run' on the windows task-bar.


FURTHER IMPORTANT GENERAL NOTES:

	a) If the 4nec2 help file can not be found after pressing the <F1> key, browse
	   to the ...\4nec2\exe folder and select the 4nec2.hlp file.  

	b) When key's F6 (Edit input-file), F8 (View output file) and/or 'Help->Nec2 user-
	   manual'  won't work you probably have a different path to the Notepad, Wordpad
	   or Word text editor's. You may customize these by changing the folder settings
	   in the 'Settings->Folders->xxx editor' menu on the 'Main (F2)' window. 
	   To locate your Notepad, Wordpad or Word text editor executables: NOTEPAD.EXE, 
	   WORDPAD.EXE or WINWORD.EXE use: 'Start->find->files or folders' on your
	   windows task-bar.

	c) When using 4nec2 with a Nec-4 engine it is required to copy a number of Nec4 
	   engine-files from your NEC4 CD into the ..\4nec2\exe folder, these are:
	   nec4d600.exe, nec4d1200.exe, nec4d2000.exe, nec4d3600.exe and nec4d7500.exe

	   After this, click 'Settings->NEC-engine->Nec4d*.exe' on the 'Main' window
	   to let 4nec2 know it must use the Nec4d*.exe executable instead of the default
           nec2d(XS)*.exe files to calculate results.

	   Place your Nec4UsersMan.pdf file in the ..\4nec2 folder for easy access
	   through the 4nec2 Help function.

	   Note however that Nec-4 is a licensed product, so no Nec4 engines are included
	   in the 4nec2 package. A Nec-4 license and corresponding executable files can 
	   be purchased at the Lawrence Livermore National Laboratory. (LLN)

	   Due to the fact that the Nec4d*.exe files as delivered on the LLN-CD are not built
	   with command-line argument and/or input(file) redirection support the starting and 
	   file-name interfacing between 4nec2 and the Nec4d*.exe engines is somewhat cumber-
	   some. You could contact Jerry Burke at LLN to see if he is willing to create a 
	   special Nec4d*.exe file including command-line support for you or you could compile
	   your own Nec4d*.exe file using the freeware G77 fortran-compiler. If so, let me
	   know and I will include the command-line support for the Nec-4 engine into 4nec2. 

	   Because ot the above it's possible that after a system (re)boot, the first time
	   the Nec4d engine is called an exception is generated due to a time-out when loading
	   the Nec4d program file. You can avoid thsi by doing a single manual start of the 
	   Nec4d*.exe executable, so it's loaded in your system cache. 

	   Note also that the author of 4nec2 did not have the possibility to test all
	   differences between Nec2 and Nec4 himself because of above license issues, so
	   if you are using Nec4 and you think you found a Nec4 related problem, please
	   let me know. 

	d) The Nec-2 calculations for the 4nec2 program are handled by so called Nec-2
	   engines. In this package two different types of engines are available: 
	   1) the original nec2d engine by Jos Bergevoet, and 2) the nec2dXS engines. 
	   Both engines have their (dis)advantages. 

	   Both nec-2 engine uses different nec2d(XS)***.exe's for increasing number of 
	   segments. With version 5.0 or later the required executable is automatically
	   selected by 4nec2 according the total number of segments specified in your 
	   *.nec input-file.
	   
	   The largest number of segments you can run on your system depends on the 'big-
	   gest' executable that can be run on your system. For the original nec2d engine
	   this depends on the amount of physical/RAM memory available on your computer. 
	   If RAM is not enough a "not enough memory-error" is generated, and you will 
	   have to lower the number of segmetns in your modell. Note however, that when
	   a certain executable should just run (see 4nec2 help for more info), but there
	   is too much memory in use by Windows or other programms, more obscure errors 
	   like "Error opening input file" could be generated.

	   For the original nec2d engine, the 'smallest' exe that can be used also seems
	   related to the amount of  RAM. When using a 'simple' nec input file with few 
	   segments in combination with a 'small' exe, but with a big amount of RAM, a 
	   message "Program requires MS-DOS mode,...." might be displayed. If this is the
	   case, increase the number of segments in the 'nr of segments' setting, till 
	   the message no longer appears. On the other hand, don't specify a far too big 
	   setting, because this will decrease calculating performance.

	   The largest number of segments that can be run on your system with the more
	   recent Nec2dXS engine depends on the amount of time you have. When the amount
	   of RAM is not enough to do the calculations additional disk storage (virtual-
	   memory) is used by the nec2dXS engine. However this is much, much slower than
	   when using physical/RAM memory

	   Nec2d (dis)advantages:

	   + Faster when using the Optimizer/Evaluator.
	   + For 'small' exe's faster than for 'big' ones (same nr-seg)
	   + Especially suited for the 'older' windows-95/98/NT systems.
	   - Reduced precision when using SomNec ground inside frequency loop.
	   - Does not run on Windows-XP or Windows-2000/2003.
	   - Can not use temporary disk-storage to increase max number of segments.

	   Nec2dXS (dis)advantages:

	   + Runs on all Windows systems.
	   + Max nr of EX and TL cards increased from 30 to 99 (Version 5.0)
	   + Maximum precision when using SomNec ground with frequency loop.
	   + No separate executable required for SomNec ground calculations.
	   - Due to start-up time, slower when using Optimizer/Evaluator.
	   (+ Uses additional disk storage if on-board RAM memory is insufficient.)
	   
	   Nec2d executables for 256 and 512 and Nec2dXS exe's for 500 and 1500 segments
	   are included in the 4nec2 package. 
	   Free executables for more segments can be found at the "Unofficial Nec ar-
	   chives" at "www.si-list.org/swindex2.html". After download place these exe-
	   cutables in your ..\4nec2\EXE folder.

	   Note: from verion 5.3.4 and later two different Nec2dXS packages are available:
	   Nec2dXS_VM.zip (djgpp version, 418 kb), capable of using virtual(disk) memory 
	   and Nec2dXS_FB.zip (mingw version, 333 kb) which is generally faster (especially
           for lower segment counts), but not capable or running virtual memory. For users
	   running large models, the _VM package is recomended. For users using one or 
	   both optimizers the _FB package is recomended.

	e) On Windows-XP and -2000 systems with recent (service pack 2) updates installed 
	   it is possible following error is generated when the Nec-2 engine is started:
	   "The system file is not suitable for running MS-DOS and Microsoft Windows 
	   applications. Choose 'Close' to terminate the application."
	   To solve this problem, please consult the '_Run_DOS_Problem.txt' file included
	   in the package

	   This problem seems only related to the Nec2dXS.exe files from the Nec2dXS_FB.zip
	   package, so as an alternative you could use the Nec2dXS.exe files from the
	   Nec2dXS_VM.zip package. (available at "www.si-list.org/swindex2.html")

	f) Some windows-2000 and -XP users reported problems related to the Nec-2 engine
	   when the package is installed under C:\program files. If this is the case, it 
	   could be wise to select a folder-name and/or nec-file names without embedded
	   spaces. 

	g) When using none-default desktop (color) settings, it is possible that one or
	   more text-boxes and/or windows are not visible or correctly painted. When 
	   using a none-default setting, please temporary switch back to the default 
	   desktop (color) settings to check if, for both settings, the same information
	   is visible.
	   On windows-XP, with its large default Font-size it is possible lower part of the
	   window is cut-off. If required you can resize or re-position any 4nec2 window. 
	   These settings are automatically save and re-used the next time 4nec2 is started.
	   
	h) See 4nec2.hlp for more information about 4nec2 functionality. 4nec2 help in 
	   printable form is included in the 4nec2.rtf file. You can print this file for
	   comfortable reading. Also the file _GetStarted.txt might help you find your
	   way through the 4nec2 package.
	
	i) The Nec-2 user manual can be found at "www.nec2.org". Select the word document 
	   and place this file as 'NEC2.DOC' in your '..\4nec2' folder for viewing with 
	   'Help -> nec-2 manual'.

	j) When you try to read-in an incomplete *.out output file (caused by nec2d errors
	   or because calculation was not yet finished), it is possible that a 4NEC2 program 
	   error is generated because of the incomplete data. To solve the problem, Remove 
	   the '*.out' file from the '\OUT' folder and try again.

	k) A suggestion from a user having difficulties: (see also item [m] below)

	   > Just an advice to all who are having problems with the 4NEC2 program.
	   > If, when you try to generate the output, the only thing you see is a
	   > flashing DOS window, then nothing else happens, this is the cure :
	   >
	   > - locate in the EXE folder of the program a DOS shortcut named 4NEC2 
	   > without extensions
	   > - open its properties (by clicking on it with right mouse-button)
	   > - select the "Memory" tab
	   > - in the "Initial Environment" combo box, make the choice "4096" instead of 
	   > the default "Auto"
	   > - click Apply, then Ok
	   >
	   > Try to execute the program again, now it should work ok.

	l) Due to the DOS based nature of the original nec2 engine, filenames are
	   internally truncated to 8 characters. Normally this should work fine, however
	   if white-spaces are embedded in your file-name the truncation might fail, so
	   don't use white-spaces in your file-names.
	   Furthermore the maximum file-name length for *.gnd files is restricted to 8 
	   characters. When you run a lot of different (high)freq/cond/diel settings, it
	   is occasionally possible you get an "Error on groundfile" message. It this is
	   the case, remove all *.gnd files and try again.

	m) When no *.out output is generated by your Nec-2/4 engine (check the \OUT folder), 
	   please set the "Wait for DOS-box option" in 'Settings->Other settings' on the
	   "Main" form, to see what error message is logged. 
	   Furthermore you could temporary remove the "@echo off" line in the 4nec2.bat 
	   file in the \EXE folder, by adding the characters "rem" before it. This should 
	   deliver even more logging.

	n) If an "out of environment space" error is generated, please re-read item k) or
	   consult the '_Out_of_env_space.txt' file included in the package

	o) If you enjoy this software, you could send me a note and tell me how you did hear
	   about 4nec2. This way I can also inform you when new versions are available.

	p) If you should experience any problems installing and/or running the 4nec2 program,
	   or for suggestions, questions or remarks, please contact me at:     
									     4nec2@gmx.net

	   TO AVOID DELETING YOUR MAIL AS SPAM, PLEASE INCLUDE "4NEC2 MODELLER" AS THE
	   SUBJECT !!
 
321 - 340 of 1,333 Posts