2D interpolation in Labview 8.5

Hi everyone,
I am  using the 2D interpolation routine in LabView 8.5, with the bicubic mode. Before using that I wrote my own routine to do the bicubic interpolation and I used an algorithm I found on the web. As the results I obtain from the two routines are different, I think that  the weighting functions used in the Labview routine are different from the ones I used. Does someone know the algorithm used to implement the 2D interpolation function in LabView 8.5?  

According to the LabVIEW help, LabVIEW uses an algorithm from "Numerical Recipes in C". Chapter 3 is available free online, so try the link and browse to chapter 3.6.
What are you using and how do the results differ? Is the difference significant?
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Color ramp not changing to reflect interactiv​e seting of hi/low color boxes

    This is using the colorramp associated with the intensity graph, but it's also true of the basic colorramp in Controls->CLassic->Numeric. The colorboxes change color, but the ramp itself remains the default black-to-blue interpolated scale. (labview 6.1, Windows 2000)

    > This is using the colorramp associated with the intensity graph, but
    > it's also true of the basic colorramp in Controls->CLassic->Numeric.
    > The colorboxes change color, but the ramp itself remains the default
    > black-to-blue interpolated scale. (labview 6.1, Windows 2000)
    >
    The color ramp has a number of colors that control its appearance, up to
    about 256 of them. The top and bottom colors are actually the above and
    below colors. In otherwords, if your scale goes 0 to 100, the below
    color is for intensities below 0 and the above color is used only for
    values above 100. Using autoscaling for the Z scale, you will not see
    those colors unless you start zooming in by manually changing the Z
    scale values. The intermediate colors are set by righ
    t clicking on the
    markers on the scale. Right click on 100 and there should be a menu
    item for Color which will let you change its color. Ditto for 0, and
    for any intermediate markers. You can add intermediates by popup or by
    dragging another marker onto the scale. You can also drag the
    intermediates or type into them to change their location.
    Greg McKaskle

  • I want to know the algorithm of interpolation of 2-D array in LabVIEW.

    I want to know the algorithm of interpolation of 2-D array in LabVIEW.Is there any formation about it?

    Hi ,
    For all delta and full DTP loads you can get  information in table  RSICCONT .Check table  RSMONICDP  this will give you detail information .Here you will get all the information with timestamp and request id .
    Hope these tables will serve your purpose .
    Regards,
    Jaya

  • Where can I find a linear interpolation VI for Labview?

    y=interpolation(X,Y,x), where x and y are either a scalar or vector. X and Y are 1D vector.

    Hi,
    there are two VIs in "Finctions->Array" palette.
    Interpolate 1D Array and
    Threshold 1D Array.
    For scalars y=interpolation(X,Y,x):
    you must first use "i=Threshold 1D Array (X,x)" to get the fractional index of "x" in "X" array. And at the second step you must calculate "y=Interpolate 1D Array(Y, i)" to get the interpolated value of Y.
    For arrays you just need to place tjis structure inside the loop and set the autoindexing.
    Example is attached
    Good luck.
    Oleg Chukto.
    Attachments:
    Ip.vi ‏15 KB

  • How do I perform the interp3 function in matlab in LabVIEW

    I have the following data attached (DTTT.txt).  The four columns are as follows: Column 1, 2 and 3 are (fixed) measurement points and the fourth column is the resulting measurement data using these 3 points. What I need to do is find the value that should be in column 4 with the values in columns 1, 2 and 3 of (i.e. 0, 100 and 20).  Is there any base function in LabVIEW for performing this interpolation? I would be using interp3 in matlab for this, but we only want to use strict LabVIEW code in this project (i.e. no external interface to matlab allowed). Thanks for any help I can get...
    Attachments:
    DTTT.txt ‏8 KB

    There are quite a few interpolation functions in LabVIEW.
    Go to
    Function Palette
    then
    Mathematics Palette
    then
    Interp & Etrap Palette
    and choose the VI that will work from there.
    CLD | CTD
    LabVIEW 2011 SP1 | TestStand 4.5

  • Creating Lookup table in Labview 7.1

    For a particular input voltage, the output is distance in cm. For example if the the voltage is 6.2mV the output should be 2.5cm, for 6mV the output is 6cm. Whenever an input voltage between any of these values is given, the output should be interpolated and displayed in cm. I would like to maintain a lookup table for this purpose in Labview 7.1. The graph between input and ouput is a linear graph. I would to know how to create a lookup table and configure it in Labview 7.1..

    Well since it is still AE Week here is an AE implementation of a LUT
    Inititalize it with an array of raw values along with an array of the tranlsated values.
    Use the Lookup action to translate raw to tranalsted.
    Itr uses the threshold and interpolate VI to do the translation.
    Ben
    Message Edited by Ben on 04-12-2007 12:45 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    LUT.JPG ‏42 KB
    Look-up_Table.vi ‏38 KB
    Actions.ctl ‏7 KB

  • Plot discontinuous data in labview graph/chart

    Hi,
    I would like to plot discontinuous data in a graph in labview. 
    The data is aquired and plotted over time - butduring certain periods there is no data aquired.
    I don't want during these times any "line" between the adjescent points - I just want simply "no line".
    Maybe the best way to show it is this example of a javascript chart
    http://www.highcharts.com/stock/demo/data-grouping
    - zoom into the time around november 2005
    During certain times there is no data - this is implemented in the datastream as "null" instead of a vaild floating point number - similar to NaN for floating point numbers - the javascript code knows that in this case there should be no interpolation.
    Is there any way to have a similar behaviour with labview charts or graphs ? 

    Yes.  Place an NaN value in the array where you data break is before sending it to the graph.

  • How to search a .csv file for data using its timestamp, then import to labview

    Hi, I'm currently obtaining density, viscosity and temperature data from an instrument, adding a timestamp and writing it to a .csv file which I can view in Excel. This works fine (see attached code) but what I need to do now is to search that csv file for data which was obtained at a certain time, import the temperature, density & viscosity values at this time back into Labview to do some calculations with them, while the data acquisition process is still ongoing.
    I've found various examples on how to import an entire csv file into labview, but none on how to extract data at a specific time. Also, whenever I try to do anything with the .csv file while my data acquistion VI is running, I receive error messages (presumably because I'm trying to write to and import data from the .csv file simultaneously). Is there some way around this, maybe using case structures?
    If you need to know my skill level, I've been using Labview for a few weeks and prior to that have basically no experience of writing code, so any help would be great. Thanks!
    Solved!
    Go to Solution.
    Attachments:
    Lemis VDC-30 read registers MODBUS v5.vi ‏56 KB

    It sounds as if you are going about this a little backwards writing to a data file and then extracting from the file but its the weekend so I can't think of an improved way to do it at the moment. 
    Searching for a specific time with those specific values is quite easy, or if you wanted to select any time then you could interpolate the values to find any value that you want (This is where the contiguous measurement comes in, as you have readings at discrete times you will have to interpolate the values if you want to get the 'measured value' at a time point that is not exactly one of your measured points).
    If you can extract the TDMS time column and the T, D & V then simply thresholding and interpolating each of your array/data sets should allow readings at your desired times.
    Attachments:
    Interpolate.png ‏301 KB

  • Rtd calibration labview labjack

    Hello my name is mike and i'm a student in London Ontario, I'm taking an instrumentations class and was recently given an assignment to complete:
    Objectives:
    The instrumentation project consists of taking a sensor and implementing a computer interface. It should incorporates the following:
    · Sensor signal conditioning
    · A microcontroller (HC11/PIC) or data acquisition unit
    · LabVIEW (and/or Visual Basic, Visual C, Visual C#)
    · System calibration and data reduction
    · Documentation
    Description
    The students will typically work in groups of 2 (unless discussed in advance with the lab instructor). The project consists of the sensor signal conditioning, microcontroller software and hardware development. The microcontroller (or data acquisition unit) performs the A/D conversion and transmits the raw data to PC (running LabVIEW, Visual Basic, or Visual C). The data is processed on PC and displayed in real time as a graph/chart.
    Calibration is an essential part of this instrumentation project. The students have to use proper calibration procedure, similar to the procedures followed in industry.
    The user is offered the following choices (through visual interface)
    a) Time interval between successive measurements (units of 0.01 second)
    b) Total number of measurements to be taken.
    A calibration should be carried out over a suitable range that is both functional and easily attainable in laboratory, e.g. a temperature range of 0 – 100 (»90) °C is quit acceptable for temperature sensors.
    Submission
    · Demonstrate the program during any scheduled laboratory time.
    · Submit the following both as hardcopy as well as on a floppy disk
    · Project description and operation
    · All design calculations related to circuit design.
    · A brief - user guide (1 or 2 pages)
    · Commented source files
    · Schematic diagrams of signal conditioning circuit
    · Clearly identify the names of individuals in the group, on the diskette and all associated documentation
    Evaluation Criterion:
    (30%) Documentation
    (20%) Calibration Procedure
    (50%) Overall project
    Submission: April 8/2005.
    Last date for submission (without penalty): April 20, 2005
    I have choosen to do RTD using lab jack with lab view... If anyone can help me even with where to start it owuld be greatly appreicated.
    thank you
    Mike

    That's a pretty open ended question but I'll suggest some directions
    It sounds like your requirement is to demonstrate in the lab, so you
    can probably get away with assuming 1) fixed wire length and 2) fixed
    environmental temperature. If so, the easiest measurement will be a
    two-wire approach. 3 and 4 wire measurements provide better accuracy
    but may not be necessary.
    Some background on RTD measurements:
    http://www.omega.com/temperature/Z/pdf/z054-056.pdf
    Typical use of an RTD is to supply a reference current and measure the
    voltage across the RTD. Keep the current small to avoid self-heating
    in the element. A pulsed current source can reduce effective heating
    while allowing a larger peak current. Use the voltage and currents
    measured to calculate the resistance of the RTD which will be
    approximately linear with temperature over a given range.
    Once you know the resistance, calculate the temperature. Find a table
    for your RTD and pick two values, one each near the upper and lower
    ends of your desired range. Do a linear interpolation between the
    known values to determine your unknown temperature from the resistance.
    Calibration can be accomplished by adjusting the known points chosen
    for the interpolation or by a distinct calibration process, depending
    on how accurate you are trying to get and over what range.
    Hope this is useful.
    Matt

  • Data Interpolation for Automotive Mapping

    Hello all,
    I have a lookup table (see attached jpeg) for the main duration pulse (fuel injection) of a diesel engine, every data point (in msec) can be match to its respective speed (top row --RPM) and pressure (leftmost row --BMEP in bar). However, I do not have the complete map and thus I'm missing some points. I was told that LabVIEW has some neat data interpolation VIs that can be apply to this specific case, anyone knows one or knows how to tackle this problem?
    Thank you!
    Attachments:
    Lookup Table.JPG ‏77 KB

    Well, if you are running on a LabVIEW FPGA then the Linear Interpolation VI may be of interest. In LabVIEW for the PC the Curve Fitting Express VI or the 2D Interpolation.vi found in the NI Example finder can help out.
    Joshua B.
    National Instruments
    NI Services
    NI Support Resources
    NI Training Resources

  • How to use labview to drive a New Focus Picomotor sinusoidally

    Hello,
    I am currently trying to use Labview to control a NewFocus Picomotor (Model# 8302)using the inteligent driver model 8753:
    http://www.newfocus.com/products/?navid=3&theView=modelDetail&productLineId=6&productGroupId=195&mod...
    http://www.newfocus.com/index.cfm?navId=97   (Using MCL with Labview)
    Ideally I would like to modify a preexisting driver to drive the motor sinusoidally in the 30-70 Hz range with control over the amplitude.  At this point, I am completely daunted by the complexity of the example files and have no clue where to start.  Any assistance with this matter is GREATLY appreciated.
    Best Regards, 
    BRox

    BRox,
    I had a look at the examples and obviously all it does is to communicate to the drive through RS232 with a proprietary protocol. With the documentation in the block diagram and the documentation of the protocol it shouldn't be too hard to understand what's going on, but on the other side NewFocus has obviously missed a chance to provide a high level and easy to use API for their product...
    I can't dive too deeply into the features of this drive, but before you spend too much time on understanding their command language, you should check with NewFocus, if it is possible at all to meet your requirements with their hardware. The main reason why I doubt that is the slow communication speed provided by RS232. The only way to reach a sinusoidal motion profile of 30 to 70 Hz with this type of communication is running the complete trajectory generation and interpolation onboard. If you have planned to generate the motion profile in LabVIEW and send setpoint commands to the drive this will probably not work.
    If the drive provides another command input (e. g. an analog +/- 10 V input for torque or velocity command signals), we can talk about alternative approaches.
    Regards,
    Jochen Klier
    National Instruments

  • MATLAB pcolor and LABVIEW Intensity Graph

    Hello all
    I have a data matrix which i want to plot using intensity graph of LABVIEW. My problem is that when i plot this matrix using MATLAB pcolor along with "shading interp" command, i got a very fine and smooth coloring graph of this matrix, however, using LABVIEW Intensity graph along with getcolor vi, i was not able to get a smooth coloring graph comparable to MATLAB pcolor. I have tried many setting but results were not satisfactory
    Is this due to a limitation of LABVIEW intensity graph or i am missing something? Kindly help me
    Best Regards
    Asim

    Thanks for providing that Asim, unfortunately the VI you provided is unusable as-is.  There is a subVI missing, and while not critical, it's difficult to tell how you're setting up the intensity graph without that VI.  Additionally, it doesn't appear that there is any graph data included in the VI you provided and a third-party software license would be required to use this VI.  Could you upload the data you're handling in a format that works without any external tools?
    As for thoughts on the differences in the plots; they are largely similar in appearance, although it does appear that you're using a different color scale in LabVIEW- the majority of your scale is in the blue-green range, rather than continuing linearly through yellow, orange, and red. You're going to lose a lot of visual resolution in the ranges you're highlighting due to this. The plot you're trying to achieve also appears to be interpolated or blurred around the edges of bins, are you actually plotting data between integers on the x-axis, or is this an artefact introduced by the software?
    Regards,
    Tom L.

  • Interpolation between two series of data

    Hello everybody,
    i need to make an interpolation on a curve which have an interruption. It's a 1D array of data with a serie of NaN inside. I don't know hot to use the different type of interpolation in this case. I tried but i failed. Find here a picture of my problem.
    Tanks a lot for you're help.
    Solved!
    Go to Solution.
    Attachments:
    interpolation.png ‏61 KB

    Looks like a LabVIEW graph In any case, I'd try to generate a new array without NANs which then can be used for all possible interpolation functions such as SPInterp, PolyInterp ...

  • 3d interpolation table

    Hi i'm a new user in labview 
    and i couldn't find any solution for my problem
    i need to create a table with :
    1- 3D interpolation ( enter with x , y , values and get z)
    2- create a function to make the user able to multiselect values in the table , then push bottom of ( increament , dercreament ,...)
    Thanks in adavance 

    (Sorry, posting by phone)
    1- search the forum or help for bilinear interpolation.
    2- use a table, then use mouse-down events to toggle selection. Change cell background if selected. Use buttons to increment selected cells, etc. Keep numeric array with values and Boolean array to track selection.
    LabVIEW Champion . Do more with less code and in less time .

  • Threshold and interpolate array in LabVIEW FPGA

    Hi,
    It's a classical one, but I don't find an answer that fit my problem :
    I want to threshold an array with a 4-20 mA analog input then interpolate an other array with the result of the threshold.
    The result of the interpolation is then sent to an 4-20 mA analog output.
    Very simple ! Just like that :
    But I want to do that in LabVIEW FPGA on a cRIO 9074....and these functions don't exist in LabVIEW FPGA.
    I failed to use LUT, so I need some help...
    The 4-20 mA modules give/need a single-precision floating point format.
    Thanks,

    I have already told you the solution: use the lookup table Express VI (which is implemented as a memory block). Why does this not work for you?
    The lookup table express VI includes interpolation. There is no need for thresholding. In fact, in your original example, there is also no need for thresholding. You can combine the two arrays into an array of 2-element clusters, which makes it effectively a lookup table, and wire that to the interpolate function alone.
    If you have enough RAM available on the FPGA, you can also avoid interpolation by creating a lookup table large enough to hold every possible input value (and corresponding output). Since you are dealing with a 16-bit input, there are only 65536 possible values. I realized I provided the wrong numbers in my earlier post (I was off by a factor of 2). The address is the input and the table contains the corresponding outputs, so your lookup table will consume only 65536 * 2 = 131072 bytes or 128kb of RAM (each output value is 16 bits or 2 bytes).
    I don't have the LabVIEW 2013 FPGA module available right now, and I can't find any documentation suggesting that the inputs and outputs are single-precision floating point values. Everything I see says that they are fixed-point values. Are you sure that the inputs and outputs are floating point? Can you provide a screenshot? In any case, regardless of the numeric format, you are limited by the 16-bit precision of the inputs and outputs, so you'll never have more than those 65536 possible values. If you do have to do the conversion, you can use the To Fixed Point and Fixed Point to Integer Cast functions (and the equivalents in the reverse direction). That will give you an integer with the same bit pattern as the fixed-point equivalent which you can use as an integer input to the lookup table.

Maybe you are looking for

  • Std web shop behavior if a Wrong Product is input in the Sales Order page

    Hi Experts, In a B2B/BOB web shop, when a product is entered into the sales order screen manually, does the system run a standard validation as to check if the product exists in the product catalog ? Is there any documentation on this kind of standar

  • PDF saving in Preview with IRS forms ruins PDF

    I am trying to save my tax form after filling it out in preview and when you "save as" the entire pdf shifts to the top right margin cutting off the edge. It prints correct and if you print - save as pdf it is also correct. However, print -save as pd

  • Completely stumped

    Well, this will be my last shot at installing arch on my laptop. It has no cd-rom, and its only floppy is a USB floppy. It does have a network interface connected to a high-speed internet connection. I'm starting from scratch. If presented with this

  • Relay Host for Outbound Messages not being used...

    I have a new v7 GWIA on a new domain that is using the relay settings from the original GWIA (on a separate domain) despite its own settings. Anyone seen this before? Regards

  • Would like to change home page, but can't figure out how.

    Have forgotten how to change homepage and after looking everywhere I can think of, can't find solution.