Please help me with VisSim Embedded
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.
Answers
-
Hi Samuel, On your questions:
- Using Expression block. However it is recommended to develop the algorithm graphically using VisSim blocks.
- http://forum.altairhyperworks.com/index.php?/topic/17601-can-i-integrate-my-own-hand-code-with-vissim-auto-generated-c-code/
- Ctrl + Right Click on a Compound Block > Select Execute on Interrupt & assign Local Time Step
- 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.
- Right click to input name and data type.
- Right click on ePWM block, Select 'change period dynamically'.
- Not possible
- Embedded > Piccolo > CAN Config
- Refer Embedded > Examples > Piccolo > Launchpad > I2Ceeprom-readwriteF28027
- 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) - Copy the files from CG folder and paste them in destination folder.
- Code is generated for Sampling rate in System Properties. Target Interface block allows override for test purposes.
- 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.
- Embedded > Piccolo > DMA Config and DMA Enable
0