Knowledge Base
Welcome to OPAL-RT’s Knowledge Base
OPAL-RT offers a repository of support information for optimal use of its technology.
Please note that OPAL-RT knowledge base is not fully optimized for mobile platforms.
For optimal experience, use a desktop computer.
Reference Number: AA-01939// Views: AA-01939// Created: 2020-08-11 23:38:50// Last Updated: 2020-09-14 13:55:39 General Article eHS Gen4 - How to map an input source to the analog inputs with AIR block If you are using eFPGAsim v.2.0 and (+) AND want to map an input source to the analog inputs you should proceed this way : *this example is made with eFPGAsim v2.3.3.56, if you're using an other version please replace " v2.3.3.56" by your version on the paths. STEP #1 : Choose the firmware from the FPGAsim library that includes this feature. The firmwares that includes this feature are the ones that contains "IOConfig1" on their names. They are located in : C:\OPAL-RT\eFPGASIM\v2.3.3.56\Common\fpgalib\firmwares Here is an example with the "TE0741_3-EX-0001-3_3_0_652-eHSx64_Gen4_Machines_IOConfig1-3B-28.bin" firmware :
STEP #2 : Locate the "Analog Input Rescaling (AIR)" LoadIn number in the .conf file of the corresponding firmware LoadIn number in this case = 17 STEP #3 : Set your input source to be mapped with the analog inputs in the eHS block Here is the FPGA model as reference : STEP #4 : Add the "Analog Input Rescaling Block Controller" to the SM subsystem with the right LoadIn number You can configure the "Gains", "Offsets", "Min" values and "Max" values depending on your application. *Note (only for eFPGASIM versions prior to 2.4): The AIR CPU block must have four inputs (Gains, Offsets, Min and Max). If there are only two inputs (Gains and offset), it will not work. To have the proper block (with 4 inputs), you can download the example below and copy it into your model. STEP #5 : You can run the model and see the signal in the scope in the SC *If you skip STEP #4, you will only see a zero in the eHS output Please find the RT-LAB project in attachment, Here are the instructions to be able to see the signal :
|