Difference between revisions of "Simulation/Fimmwave-Fimmprop"

From OptoelectronicsWiki
Jump to: navigation, search
(License debug)
(Scripting with jaredwave)
Line 161: Line 161:
  
 
Download Windows based packages with Intel processors (win32) from the links below:
 
Download Windows based packages with Intel processors (win32) from the links below:
 +
 +
http://www.python.org/download/
  
 
http://sourceforge.net/projects/numpy/files/NumPy/1.6.1/numpy-1.6.1-win32-superpack-python2.7.exe/download
 
http://sourceforge.net/projects/numpy/files/NumPy/1.6.1/numpy-1.6.1-win32-superpack-python2.7.exe/download

Revision as of 10:21, 22 September 2012

License installation instruction

File:NetworkLicense InstallationGuide.pdf

Update instructions

The multi-subnet issue appears to be resolved. Please download the update below and drop it onto your computer. Tell me if you are on the 128.111.239.x or 128.111.192.x subnet and can not use this program. There are a total of 3 licenses. Please confirm that there is a license available by logging into the 128.111.239.215 computer, entering http://localhost:6002/licenseinfo.html?1?1033 into the browser, and reviewing the list.


Media:FimmwaveJuly2012.rar‎


Modify the license.ini file in the bin32 and/or bin64 folder of the ...PhotonD\Fimmwave\ in order to point the the key server 128.111.239.215


HISTORIC FILES:

Media:Fimmwave_March_2012.zip

Media:FimmwaveNetworkNov2011.zip

Media:FIMMWAVEAUG2011.zip‎

Network Version: File:Fimmwave 32&64 bit Aug 2011.zip Replace these files to the folders created in the June 2011 update

Network Version: File:Fimmwave 64 bit June 2011.zip

Network Version: File:Fimmwave 32 bit June 2011.zip

For 1 of the 3 Stand-Alone Access Keys: File:SA Fimmwave 32and64 bit March 2011.zip

License log

8/25/2010 Network license is down. "041" error shows up. Both local use and remote access is forbidden Rebooting the serve PC and replugging the hardkep solve the problem

10/24/2010 Network license is down."041" error shows up. Both local use and remote access is forbidden Rebooting doesn't solve the issue. 10/28/2010 Network license recovers automatically. Don't know why...

11/09/2010 Receive three stand-alone license keys and CD as back-ups in case the network license is down. It's required to install the corresponding version of fimmwave in order to use the stnad-alone key.

1/25/2011 Network license is down. Remote access is forbidden while the local use of the license is ok. The PC with the physical key can run fimmwave without problem. "041" error shows up. "035" error shows up after reinstalling fimmwave in my remote PC. rebooting the simulation PC doesn't work. 2/9/2011 Add port "UDP 6001" in the firewall exception list and resolve the problem.

3/15/2011 Sudha reports fimmwave network license is down. Both local use and remote access is forbidden."041" error shows up. Unplugging and re-plugging the physical key doesn't solve the probelm Reboot the simulation PC, and the license is back.

License debug

Logfiles are located in c:/program files (x86)/PhotonD/Log files/


1. Grab screenshot of error message, allow program to exit.

2. Note down exact time of event, ideally from your computer clock.

3. Open the Sentinel License Monitor (http://localhost:6002/licenseinfo.html?1?1074 by default, though you might have changed the port?).

4. Grab a screen shot of the Monitor.

5. If the Monitor shows that Licenses In Use is >0, then click on the left-hand column to display the License Usage for the Key page (see screenshot in Network Installation Guide). Grab screen shot. If the Monitor displays that all the licenses are in use, then find the people indicated in the License Usage pages and check with these people whether they are intentionally using the software etc.

6. Try starting FIMMWAVE from server PC. Note down result and time.

7. Try FIMMWAVE again from client PC. Note down result and time. If it still does not work then continue...

8. Run the Sentinel Medic as described in §2.6 Testing Connection to Sentinel Server. Grab screenshot and write down your results.

9. Try FIMMWAVE again from client PC. Note down result and time. If it still does not work then continue...

10. Stop/restart the SPS service in Control Panel (admin rights required).

11. Re try FIMMWAVE from client PC. Note down result and time. If it still does not work then continue...

12. Reboot the server computer.

13. Re try FIMMWAVE from client PC. Note down result and time.


It is VERY important that any observations are carefully and accurately noted down and then sent to us. Accurate observations will help us identify the root problem with confidence and resolve this issue finally. Regards Photon Design Support(support@photond.com)

update: Mar. 18 2011

Scripting

There are a few steps that you need to do with your computer in order to allow scripting in python of Fimmwave. Please see the manual (File:Fimmwave Scripting Manual.pdf) for step by step instructions. I have already done this to the simulation computer.

Once you have completed these preliminary steps, please feel free to take a look at this already constructed python scripting example File:LioniX WG Example.zip. If you write a new and interesting example, with additional functionality please post the commented code.

1) Extract all of the files in the above .zip you will need them to walk through this example. Be sure to place all three of these files (LionixPyScriptExampleFDM.py, LionixPyScriptExampleFMM.py and PdPythonLib.py) in the same folder.

2) Open Fimmwave via the desktop shortcut with the target "...fimmwave.exe" -pt 5101 for reasons described in the manual. (python and other programs communicate with communicate with Fimmave over TCP/IP)

3) Open LioniX_WG.prj

4) Open LionixPyScriptExampleFDM.py or LionixPyScriptExampleFMM.py in Python IDLE (or your preferred python script compiler)

5) You can modify a output file save location in this script, else the data will simply be saved in the current directory of your script

6) Run the script with Python 2.3 (other versions give you errors, this is the version on the Fimmwave CD). (It seems no longer an issue now. Python 2.5, 2.6, 2.7 all work)

7) Once the script is complete the output file can be viewed. It is tab delimited and makes a nice table in excel.

Have fun and share your knowledge!!!


FAQ:

1, The function pdApp().Exec always return "None";

try:

replacing (Line279 in fimmwave/Scripts/pdPythonLib.py)

 recmsglen = atoi(recmsg)

by

 recmsglen = atoi(recmsg.split('\x00')[0])

2, If the port 5101 is occupied by another Fimmwave user, how to change the port, E.g. from the default 5101 to 5102 at the bowersgroup.ece.ucsb.edu.

open the property of the fimmwave link icon modify the target to be

 "C:\Program Files (x86)\PhotonDAug2011\Fimmwave\bin64\fimmwave.exe" -pt 5102

Add the next two lines at the beginning of the scripts

 fimm = pdApp()
 fimm.ConnectToApp(portNo=5102)

Updates

There is an update CD in one of the binders for July 19, 2010, Jock has a copy.

Once you install you need to replace these 3 files in the bin folder. File:LioniX WG Example.zip

Scripting with jaredwave

Follow the directions from the 'Scripting' section above. After you have python 2.7 scripting working with FIMMWAVE, download the below folder and unzip it to your C:\Python27\Lib\site-packages\ directory. Run the included example.

For now, you must look in the file '__jaredwave.py' for further direction. Contact Jared with specific questions.

File:Jaredwave.zip

Be sure to install the Numpy,Scipy,and Matplotlib (Running these 3 together is the open source variation of Matlab and it is awesome!)

Download Windows based packages with Intel processors (win32) from the links below:

http://www.python.org/download/

http://sourceforge.net/projects/numpy/files/NumPy/1.6.1/numpy-1.6.1-win32-superpack-python2.7.exe/download

http://sourceforge.net/projects/scipy/files/scipy/0.10.0/scipy-0.10.0-win32-superpack-python2.7.exe/download

http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/matplotlib-1.1.0.win32-py2.7.exe/download