- Follow instruction from AppsWiki on how to create demo license "license.dat" file for enVision/Unison
- root access is password:ltxroot
- If ".cshrc" file does not exist in maint account home directory, create it
- make sure to login as user: maint, password: maint
- run /ltx/apps_support/com/cde_account_config
- the above command will generate ".cshrc" file in maint's home directory
- log out and log back in again with "maint" account.
- launch enVision
Showing posts with label R12.5.5. Show all posts
Showing posts with label R12.5.5. Show all posts
Thursday, July 21, 2016
How to Update enVision Demo License in Solaris (Unix Box for EIM Compiling)
Tuesday, July 19, 2016
Create New EIM from Scratch Using MethodTool
- Create a new program or load an existing program.
- MethodTool can only be invoked when a program is loaded in enVision.
- Launch MethodTool from OpTool>Tools>Development>Method
- In MethodTool's menu, set MethodTool>Edit>Tool Mode>External Interface
- Set the working directory for EIM.
- Click the "Method Directory:" button in MethodTool
- In the file selection dialog box, select the directory where the EIM files are to be stored
- Optional: If a directory name is specified in "Enter Directory:" field in the file selection dialog box, this new directory will be created (if it does not exist yet) and the EIM files will be stored in it
- Specify EIM name using the "ExternalInterface:" button in MethodTool
- clicking this button will invoke popup listing existing EIM already created previously. If you already created one before and wish to modify it, select it from the list
- To create a new EIM, type the EIM name in the textbox beside "ExternalInterface:" button and press <return>
- Once EIM is specified, you will notice that the "Linked Filename:" will now be filled with <path>/<external interface name>.evso and buttons in MethodTool for creating/modifying/building EIM source codes will be enabled
- The .evso file will be the output binary file of a successful EIM source code compile
- Specify the entry point functions to be included in your EIM class
- Entry point functions are methods that will be included in your EIM class. these methods are event handlers that you can modify to perform action when an event occur in enVision e.g. StartTest(), a function that is executed by EIM when testing starts in enVision. You can modify StartTest() function to perform actions you need when a start of test occurs
- In MethodTool, click Edit>Entry Points... and "Select Entry Points" popup will appear. Select which entry point function you wish to add in your EIM class and press OK
- Create source codes
- In MethodTool, click "Create Sources" button and the following files will be created in the working directory:
- <eim name>.mid
- <eim name>.cxx
- <eim_name>.hxx
- Check the .cxx files if the entry point functions you selected are defined in the code
- Create Makefile
- In MethodTool, click Options>Create Method Makefile... and "Create Method Makefile popup will appear
- The evso Name will be the name of the binary file to be created when compiling is successful
- The Path is where the source codes to be compiled are located
- Right click on each lines listing the required source code files and choose "Dynamic Linked"
- Press "Create Makefile" button
- In the working directory, you will now see new files:
- Makefile
- <eim name>.tmk
- Define member parameters for your custom EIM class
- MethodTool will only include 2 member methods init_local_member_data() and free_local_member_data() only if at least one custom parameter is declared
- choose one of the rows (preferably the top most available) and write the name of the variable in "Name" column.
- to specify the type of variable (e.g. TestheadConnection*)...
- right-click on the member variable's "Data Type" field and popup will appear. choose "Local Data...".
- In the dialog box that appear, enter the type name in the text box below "Standard Data Type" and press OK
- Adding new member parameters or changing/updating existing ones will require you to update your source code in MethodTool so that changes will reflect.
- In the MethodTool, click the "Update Sources" button
- Modify your source code and save changes
- Build the EIM
- In MethodTool, click "Build" button.
- You will be prompted couple of times. Just keep clicking Yes/OK
- A terminal will open showing compile in progress. it will automatically close if successful. otherwise it will remain open for you to see the errors
- The following files will be created in working directory upon successful build:
- <DNT of FX1>/<eim name>.evso
- Note that the folder can either be DNT or FX1 depending on which tester you used to compile it with
- Test the EIM
- Create or load an existing test program of your choice in OpTool
- Load your EIM in MethodTool
- For debug purposes, make sure to add the ExtIntfInit() entry point function in your EIM if you haven't done so
- Modify the source code by adding the following line inside ExtIntfInit() function in <eim>.cxx
- program->writeln(STDOUT, "Hello EIM world!\n");
- Compile the EIM and if successful, load it into enVision by clicking "Reload" button in MethodTool
- In Optool menu, go to OpTool>Setup>EIM... and "Setup External Interface Method" popup will appear
- If your test program already have an existing external interface object defined, you can just insert your EIM method in it by pressing "Insert Methods" button and selecting your EIM in the popup list.
- Note that if you can't find your EIM in the list, try pressing "Reload" button again in the MethodTool
- Press OK
- Once your EIM is loaded, a message "Hello EIM World!" will be printed in the Dataviewer
- Note: In simulation, enVision does not automatically start EIM process so start it manually by restarting tester via command line as shown:
- >restart_tester <tester> -seim
Subscribe to:
Posts (Atom)