How to look up specified data in a Basic Stamp??
Turnbull2112
Posts: 65
Lets say I have two RCTIME values I'm reading with a BS2. I would like to return specific data to use as an alarm point based on the two readings. Just as an example if RCT1 = 1000 and RCT2 = 500 then give me "X" value. This would follow a curve or a profile that I am going to build based on how the RCTIME values follow my process. Does anyone out there understand what I'm getting at? I'm not sure if there is a formula for a curve that would work or a string of pre-defined data points that the BS2 could follow. Help?? Thanks,
Comments
Arrays can be defined in a BS for data points by "RCval1(n) VAR Byte" where "n" is the size of the array, as in numbers of items. Byte could be Word or Nib depending on the size of the data entry.
Else, if this is a linear relationship, you could use the ol' Y = M*X + B formula. Non-linear relationships are difficult to find a formula for although I do remember generating a non-linear curve based on data points. Google should help you there, although it can become very complex depending........
I'm assuming you expect the BS to read two RC values and perform some calculation to activate an alarm for an external process. I guess what we need to know is; What is the relationship between RCT1 & RCT2??
Please explain in more detail what you are tring to do Thanks