Psim Installation Guide (Softkey Network)
Psim Installation Guide (Softkey Network)
Psim Installation Guide (Softkey Network)
Installing PSIM
Installation of the PSIM customer-hosted softkey network version involves two steps: (a) installing the PSIM License
Manager; and (b) installing the PSIM software. Make sure that the PSIM License Manager is installed and is running properly
before installing the PSIM software.
For the convenience of description, the computer that runs the PSIM License Manager is referred to as the server computer,
and the computer that runs the PSIM software is referred to as the client computer.
Note: Installing the PSIM License Manager and the PSIM software both requires administrative privilege. You must have
the administrative privilege, or ask your system administrator to perform the installation.
Installing the PSIM License Manager:
Installing on Microsoft Windows Operating Systems:
1. Dedicate a computer as the server computer to run the PSIM License Manager.
2. Make sure that the server computer has the Java SE Runtime Environment 8 or later already installed. If not, install
Java SE Runtime Environment before installing the License Manager. Note that if Java is reinstalled after the
License Manager is installed, the License Manager must be reinstalled. To find out the Java version, go to Control
Panel >> Java. In the Java tab, click on View. Note that on a 64-bit computer, you should install the 64-bit version
of Java.
3. There are two versions of the License Manager setup in the installation folder, one for 32-bit computer
(PSIMLicenseManagerX32.exe) and the other for 64-bit computer (PSIMLicenseManagerX64.exe). If these files
are required in the future, they may be found at this link:
www.powersimtech.com/download/PSIMLicenseManager_setup.zip
Run the License Manager setup (on 32-bit computer, run the 32-bit version; and on 64-bit computer, run the 64-bit
version). The dialog window images below are from the 64-bit setup.
4. Follow the setup instruction and you will reach the dialog window "Specify port numbers", as shown below:
This dialog window defines the PortNumber and Administrator PortNumber. Choose two unused ports for the
PortNumber and Administrator Port Number. The Port Number is used for communication for the PSIM license,
and the Administrator Port Number is used for communication for the PSIM License Monitor. The default
PortNumber is 8087, and the default Administrator Port Number is 8088.
If there is a firewall on the server computer, manually open these two port numbers assigned to the Port Number
and Administrator PortNumber for UDP communication. Some firewalls may require the process name or program
name. Specify “Java.exe” and “Javaw.exe” as the process name or program name. In addition, if the server computer
and the client computer are on different sub nodes, manually open the two ports at the gateway nodes for UDP
communication.
5. Click on Next to proceed to the dialog window "Second License", as shown below,
If the computer hosts only one customer-hosted softkeylicense, select No. If the computer hosts a second license,
select Yes and specify the Port Number and Administrator Port Number for the second license.
6. Click on Next to proceed to the dialog window “Destination Folder”, as shown below:
Choose the destination folder. The default folder is “c:\PSIMLicenseManager”. The PSIM License Manager
Administration program “PLSGUI.exe” will be placed in “c:\PSIMLicenseManager”, and the other files will be
placed in the sub-folder “License1” for the first license.
Proceed with the rest of the installation.
7. After the installation is completed, the PSIM License Manager Administration program will be launched
automatically, as shown below:
Click on the button Run License Manager Management. For the first time installation, an error message will pop
up, as shown below.
Ignore the error message. Click on OK. Copy the server ID, and email it to Powersim.
8. Based on the server ID, Powersim will generate a server license file. After receiving the server license file, run the
PSIM License Manager Administration program PLSGUI.exe again. Click on Update License File, and select the
file received from Powersim. After the license file is updated successfully, the license information will appear in the
dialog. Click on Start Service to start the License Manager service. The status should show Status:Service is running.
If the service cannot start, please do the following for troubleshooting:
- Start a Command Prompt window. In the window, Change to the folder
“c:\PSIMLicenseManager\License1” and run the command line version of the License Manager program
“PSIMLM.bat”. If there is an error message, please send the error message to Powersim for further
support. If there is no error message, it means that the command line version works and the problem is
with running the service.
- If “PSIMLM.bat” works, the likely cause is that the Windows environment variable for Java is not set
properly. Follow the steps below to set up the environment variable:
- In Windows Explorer, right click on Computer and go to Properties >> Advanced system
settings >> Environment Variables…
- In the System variables section, click on New. Set the following:
Variable name CLASSPATH
Variable value .;
- In the System variables section, find the Path variable. Click on Edit, and add the actual path of the
Java bin folder to the beginning of the Path variable. For Java 8 update 60 (64-bit), for example, the
folder is “c:\Program Files\Java\jre1.8.0_60\bin”.
- Close any Command Prompt windows, and run PLSGUI.exe again and try to start the service.
9. Run the License Manager Management to monitor the license usage and perform other administrative tasks.
5. After the installation is complete, if your license does not include the MagCoupler or MagCoupler-RT Module, skip
this step. Otherwise, in PSIM, go to Options >> Set Path and add JMAG folder to the PSIM search path. For
example, if JMAG is in “c:\program files\JMAG-Designer13.0”, add this folder to the PSIM search path.
6. If PSIM is installed on a network drive, PSIM online help will not work due to Windows securities. Please copy the
file "PSIM.chm" from the network drive to a folder in the local drive, for example "c:\PSIM". Then launch PSIM,
and in Options >> Settings >> Advanced, check the box "Use alternate PSIM help file path", and click on the
button ... to select the file "c:\PSIM\PSIM.chm".
This concludes the installation of the PSIM software. For additional information on installing and running PSIM, please refer
to the file “readme.pdf” which is located in the “doc” folder in the PSIM installation folder.
To restrict by IP Address, add the key “ValidClientIPs” and list all valid IP addresses separated by a comma. Please note
that wild cards * are not allowed. To remove this restriction, remove or comment out “ValidClientIPs”.
To restrict by computer, run “ComputerID.exe” from the PSIM folder on each computer and add the Computer IDs to
“ValidMACs” separated by a comma. To remove this restriction, remove or comment out “ValidMACs”.
Example:
[SERVER]
Port=8088
MonitorPort-8089
ValidClientIPs=192.168.0.102,192.168.1.112
ValidMACs=HPMJRNINMSHWAGKTGIGGSAHREW, LKUIDOIENJDKFNJNJKFFFDERGT
Troubleshooting
After you have installed the PSIM License Manager, if you reinstall a new Java version, please copy the following files from
the folder “lib\ext” in the previous Java version to the folder “lib\ext” in the new Java version:
ini4j.jar, jug-lgpl-2.0.0.jar, PSCoderDecoder.jar, ini4jLicense.txt
Otherwise, the License Manager will not work.
Simulating a Circuit
To simulate the sample circuit “examples\dc-dc\buck.psimsch” in the PSIM directory, launch PSIM. Choose File >> Open
to load the file. Then go to Simulate >> Run Simulation to start the simulation. After the simulation is complete, in the
waveform display window, select waveforms for display.