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

Assignments of measured values from a spreadsheet (excel. Csv, etc.)

Hi, all.

I'm visiting a german technical school and we have do start a Project work in February. For the coarse advance planning I would like to have a Basic structure of the Programming with Keil µ-Vison. We already programmed some stuff with µ-Vision, but not deep enough

I would like to read the digitized value of a pressure sensor with a microcontroller, let the Software evaluate it, and show the pressure value on a Display.

so is it possible, to build a Table (like Excel, .csv, etc.) and let the programm compare the Value of the input Port from the microcontroller withe the values in the table and take appropriate pressure value.

Or is there another possibility, do assign the values, so that I can change the assignments quick and easy?

please excuse my bad english.

Thank you in advance!

Jonas

Parents
  • "I give another Example not with Number, with Text."

    Don't think of them as text; think of them as numbers

    enum
    {
       day_sun = 0;
       day_mon;
       day_tue;
       day_wed;
       day_thu;
       day_fri;
       day_sat;
    }
    


    So your table of times is just indexed by the day number.

    You can convert day numberse to text (for display) with a lookup table

    char *day_string[] =
    {
       "Sunday",
       "Monday",
       "Tuesday",
       "Wednesday",
       "Thursday",
       "Friday",
       "Saturday"
    }
    

    "So I can change the time easily in the table."

    Changing them in the table is easy;
    The question is, how will you get the data to the microcontroller; eg:
    A keypad?
    A serial link?
    Some kind of plug-in memory device?
    etc, etc,...

Reply
  • "I give another Example not with Number, with Text."

    Don't think of them as text; think of them as numbers

    enum
    {
       day_sun = 0;
       day_mon;
       day_tue;
       day_wed;
       day_thu;
       day_fri;
       day_sat;
    }
    


    So your table of times is just indexed by the day number.

    You can convert day numberse to text (for display) with a lookup table

    char *day_string[] =
    {
       "Sunday",
       "Monday",
       "Tuesday",
       "Wednesday",
       "Thursday",
       "Friday",
       "Saturday"
    }
    

    "So I can change the time easily in the table."

    Changing them in the table is easy;
    The question is, how will you get the data to the microcontroller; eg:
    A keypad?
    A serial link?
    Some kind of plug-in memory device?
    etc, etc,...

Children
No data