|
-
Aug 2nd, 2009, 11:52 AM
#1
Thread Starter
Member
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
-
Aug 4th, 2009, 01:58 PM
#2
Thread Starter
Member
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
-
Aug 4th, 2009, 03:29 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|