Jump to content

Sreeram Mohan

  • Content Count

  • Joined

  • Last visited

Everything posted by Sreeram Mohan

  1. Hi Minh Pham, You could try using a fixed point integrator as attached. This would codegen . Not sure if it helps. --Sreeram Mohan Fixed_Point_Integrator.vsm
  2. Hi , Could you please attach the vsm file so that we can investigate further ? Does the code generation fail for all diagrams of only this diagram ? --sreeram
  3. Hi Tom, The diagram when not connected to a plot has no intention to simulate anything hence you dont see any outputs. Vissim/Embed thinks that whole set of blocks is unconnected to any output so no need to evaluate the portion of this diagram. This is done so that if you take the current diagram and generate code you ideally want to see dead code being generated. As a workaround you could also insert a extern variable and connect it to the variable you would like to monitor so that you could still execute without having to connect a plot block ! Hope this helps Hope this helps, --sreeram execute and have an extern.vsm
  4. Hi Tom, I am glad this approach works for you. Please keep the questions coming as you make progress ! --sreeram
  5. Hi Tom, Can you try this example attached that has a way to use a 1D map block which might make things easier in this case uses a 1D map block. You may have to browse the candidate_a_map.csv in the 1D map block and it should give you the ability to use the $runcount or any other input and select the entry from the available values. --sreeram Forum_question.vsm Candidate_a_map.csv
  6. Hi Tom, Attached is an example ! By the way you can find the variable block as below and give it a name.Remember you can assign it only once but you could use it in how many ever instance and also as part of parameters in blocks. Please feel free to let me know if you need anything more. By the way if i may ask what are you using Embed for . Would be useful to know to provide more inputs ! --sreeram Example_a_with_variable.vsm
  7. Hi, Please find some inputs on the servo motor (point to be noted is the diagram is run at 50Hz so that the desired PWM frequency can be achieved for the servo) as well as the joystick using Embed. Let me know if you need further inputs. In addition please post your embed questions if possibleon the embed section of the forum ! - -sreeram Ex7_Servo_motor_control.vsm Ex7_Servo_motor_control_triangular.vsm joystick_Test.vsm
  8. In addition one could 1) Also use the import block where in you could specify the time vs data and even have it come from a text/csv file ..etc. 2) Use the variable block and have at one place all the desired variables and change them as need be and it would reflect in all references. --sreeram
  9. Hi Gaurav, Can you please provide the following info: 1) What is the embed version you are using ? 2) What board in pacrticular? With the latest Embed versions we ship the necessary Ti compilers and we have not seen issues. Could you provide more info. --sreeram
  10. You can find the raspberry pi support in the latest Embed 2019.2 which you can access from : https://solidthinking.com/support-training/embed/downloads/ or from Altair Connect --sreeram
  11. Hi Trido, We dont yet support the I2C and CAN for STM32 but we have that in the roadmap for the future release . Thanks, sreeram
  12. Right now as part of Embed 2019.2 the Raspberry Pi is a good target to start for IOT. We also have examples of using Arduino with a ESP8266 via a UART interface if that is of interest ! --sreeram
  13. Hi Gaurav, Could you please attach the Embed Diagram so that we could suggest what is going on ? --sreeram
  14. Can you send us a snapshot of the error log ? --sreeram
  15. Hi Minal, There are no attachments to this post. Could you please post the same. --sreeram
  16. Hi Erich, Could you please attach the modified batch file ? Also indicate the comport number that the redboard shows on your PC ? --sreeram
  17. Hi, As a workaround please follow the below steps and I hope you should be able to get the hex file downloaded from Embed on the redboard that you have. 1) Navigate to the directory where Embed is installed. The default location is C:\Altair\Embed2019\cg 2) Look for a file called downloadToArduino.bat and back up and make a copy so that you can revert in case there are issues modifying it. 3) Open the above batch file in a text editor like notepad and in line number 3 you would see set COMNUM=%2 4) Edit the above line to replace %2 with the comport number of your board for example if your redboard comport number is COM12 then set COMNUM=12 5) Save the file and now when you generate code from Embed and then try to download the hex file you should be able to get the hex file onto the target. Please let me know if you need further help with this --sreeram
  18. Dear Jake, We still don't support the ESP-Wrover-Kit. We will definitely investigate the same for future ! --sreeram
  19. Dear Erich, Could you please post in the issue that you see as a snapshot ? Could you also double click on the Target Config block and let us know if the auto detect utility recognizes the redboard and the corresponding comport ? Thanks, --sreeram
  20. Hi Nit, Here is a simple Embed diagram of one possibility that should demonstrate the timedelay block. In this case i added a 5 second but could be any other as well. There are also other ways for instance : 1) You could rely on the runcount and setup the step time of a diagram . 2) Use a statechart and do a software counter and trigger right events from a state chart . Hope this helps ! --sreeram timdelay.vsm
  21. Just to be very precise and provide an answer. One could in the event function of blockset in Embed look for event " WM_VSM_CONNECTOR_NAME" and return the needed name for the label. This is already supported in the DLL wizard. Hope this helps ! --sreeram
  22. Hi Athiesh, You can use a combination of a constant block that accepts a matrix and feed it through to a buffer block. The buffer block could output at every time step and this should do the job. Please let me know if you need additional help. Thanks, Sreeram Mohan
  • Create New...