Channel Conversion Calibration Expression

Recommended Posts

Does anyone have a working Channel Conversion expression using a 5-point array that they can share?

I've read that the Interpolate function has been or will be deprecated, so the obvious technique would seem to be inadvisable.

If no extant expression is available, can anyone offer advice on a workable approach?

We'd be willing to consider buying such a resource for a reasonable fee.

Thanks for your consideration!


Link to comment
Share on other sites

The interpolate function is not deprecated, just the menu items that do interpolation.  You can still use interpolate from script / expressions. Can you tell me where you read this so we can adjust the verbage to be clearer?

Link to comment
Share on other sites

I found it yesterday while searching my long-standing topic of calibration tables, but it does not show up now using "interpolation", "calibration", "interpolate" or "calibrate" as keywords".

Sigh ...  I apologize that I cannot be of greater assistance.

If I stumble on it again I'll be sure to revisit this message and report my findings.

Thanks for your consideration,


Link to comment
Share on other sites

Here is an explanation of doing an interpolation with 5 points.  First you need to create two global variables, call them say, "calPerc", "calVoltage".  CalPerc you can set to your steps:

global calPerc = {0,25,50,75,100}
CalVoltage you can initialize to some defaults:
global calVoltage = {0,1,2,3,4}
Then if you want, you can pull actual values from a file or the registry.
To then calculate a percentage based on a voltage reading ("Value" below) you just do:
interpolatePoly(calVoltage, calPerc, Value)
You can then change calVoltage all you want for new calibration values.  Just use array notation, so calVoltage[0] is the calibration reading at 0%, calVoltage[1] is the reading at 25%, etc.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.