Results 1 to 3 of 3

Thread: Lookup Table Advice

  1. #1

    Thread Starter
    Member Mad_Max's Avatar
    Join Date
    Dec 2005
    Location
    Kingston, Ontario, Canada
    Posts
    33

    Lookup Table Advice

    I need some advice for the best approach on this problem.
    I am writing a data acquisition application. I am acquiring voltage data from a thermistor into my VB app which I want to correlate to a known temperature.
    I have a .CSV file from the thermistor manufacturer that tells me the voltage response from the thermistor in 0.1 degree increments, which means that I basically have two columns (Temperature, Voltage), 500 elements deep.

    I need to compare each voltage value acquired to the voltage column, and then display the corresponding temperature value.

    Keeping in mind that I'm a novice programmer, what's the best way for me to do this? Can you point me to an example?

    Cheers,

    Chris

  2. #2

    Thread Starter
    Member Mad_Max's Avatar
    Join Date
    Dec 2005
    Location
    Kingston, Ontario, Canada
    Posts
    33

    Re: Lookup Table Advice

    Can anyone offer any advice?
    Is a lookup table the way to do this?
    I'm not certain how to create a lookup table in VB6?

    Chris

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Lookup Table Advice

    It sounds to me like an array is what you need.

    For information and code examples, see the article What are arrays and how do I use them? from the "Data types/Variables" section of our Classic VB FAQs (in the FAQ forum)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width