We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello, Please let me know 1) What is a monitor program and how is it used? 2) My program uses a lot of floating point numbers as many floating point calculations are required. Should one try to avoid using floating point numbers and how can it be accomplished? Regards, Mohit
1. A monitorprogram can be used to debug your program directly on the target system. Therefore you have to program your hardware with the monitorprogram. After this you can connect the pc to your hardware and download your application. You can run your application, stop it, place breakpoints, evaluate or change variables and a lot more. 2. floating point calculations are taking a lot of your speed ressources. Though man should avoid using it. Most of the time it is possible to use bytes or int/word instead. For example if you have to set up a temperature between -50 and +200 °C. you can store the value internally as an integer. If you need a resolution of 0.1 take the internal value multiplied with 10. So internally 257 digit repesent 25.7 °C. To show the correct value to the user you just need a division of an integer. Bye Leo