This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Monitor Program

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

Parents
  • 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

Reply
  • 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

Children
No data