Please help me with VisSim Embedded

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Submitted by dinakar on Thu, 08/21/2014 - 17:29 

Dear Sir,

kindly do needful for the following queries asap

How can I integrate my own hand ' C ' code with Vissim.

How to integrate Vissim auto generated code with ' CSS ' c code.

How to generate Multiple INTERRUPTS works at different timing. ( such as CPU TIMER 0,1 And EPWM Interrupts, External Interrupts ' main infinite loop ' ) for exam-ple cpu timer 0 run at 20khz , cpu timer1 run at 10khz, epwm interrupt run at 40khz .

How to avoid Overflow in Vissim.

How to Read External variable using by Extern read block.

How to change Time period for PWM block externaly.

How to delete more connection at a time.

How to Access CAN ( Transfer & Receive )

How to Access SPI ( How to store in EEPROM )

How to Access SCI ( Two way communication )

I have created one new folder, When I Going to save my diagram in our folder, vissim file only placing at that folder. But .c file, .obj file, .out file etc..., file are placing at vissim\cg......, How this has to place at our folder itself.

What basis to set Sampling Rate in ' Target Interface ' block and ' System Properties '

I have Converted ' Z ' to ' S ' domain how to convert back to ' S ' to ' Z ' domain.

How to Enable and Access DMA Module.

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2016

    Hi Samuel, On your questions:

    1. Using Expression block. However it is recommended to develop the algorithm graphically using VisSim blocks.
    2. http://forum.altairhyperworks.com/index.php?/topic/17601-can-i-integrate-my-own-hand-code-with-vissim-auto-generated-c-code/
    3. Ctrl + Right Click on a Compound Block > Select Execute on Interrupt & assign Local Time Step
    4. Using VisSim Fixed Point Block sets, Generate the c-code, Use JTAG Hotlink to see results , You can also use simulation to check for overflow and precision loss.
    5. Right click to input name and data type.
    6. Right click on ePWM block, Select 'change period dynamically'.
    7. Not possible
    8. Embedded > Piccolo > CAN Config
    9. Refer Embedded > Examples > Piccolo > Launchpad > I2Ceeprom-readwriteF28027
    10. Using Embedded > Piccolo > Serial UART read/write blocks. See example under Embedded > Examples > Piccolo > LaunchPad > UART-Tx string-28027
      To read/write RS 323 data from the PC use the VisSim/Serial addon (Refer Diagrams > Examples > vsmSerial)
    11. Copy the files from CG folder and paste them in destination folder.
    12. Code is generated for Sampling rate in System Properties. Target Interface block allows override for test purposes.
    13. Right Click on Transfer Function Block, Select Discrete. Note that each conversion is an approximation and degrades filter response. We recommend to design in S domain and convert to Z as needed.
    14. Embedded > Piccolo > DMA Config and DMA Enable