Example Code

Interpolate Non-Uniform Grid to Create Contour Plot

Code and Documents

Attachment

Introduction

This VI is an example of using the MathScript Node in LabVIEW to create a contour plot from non-uniform XY data.

To create a contour plot or 3D image of the data we have to know the temperature at every point (each XY location) of the object.  The sensors give this data for the exact location the sensor is placed but we have to calculate the temperature at the locations between the sensors.  For this we use an interpolate function.  If the sensors are uniformly spaced along the object we can use the low level LabVIEW functions to calculate the correct values.

At this time there is not a low level function in LabVIEW that can handle non-uniform interpolation, however it is still possible in LabVIEW using the MathScript Node.

This allows options such as a contour plot of a temperature map where the temperature sensors are in arbitrary locations (not evenly spaced along the object)

Steps to Complete

Update the X&Y locations of the sensors and the sensor data.  You could use this with live data to get an updating image of a real world object.

The new 3D picture plots can be fully customised.

3D Contour Plot.JPG

3D Interpolate.png

Additional Notes

Requires LabVIEW 2009 as uses the new 3D picture plots.

Older versions of LabVIEW could use the MathScript functions but will require a different method of plotting the data

------
John.P | Certified LabVIEW Architect | NI Alliance Member

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
YUSANY
Member
Member
on

Tengo Una Duda, de Igual Manera Necesito CREAR Unas graficas en 3D, Pero apartir de la ONU Modelo cuadrático (el Cual ya Tengo, es Decir Tengo la ecuacion de Segundo Orden), utilizo Como variables de Independiente De La Temperatura y agitacion, las variables de la Variar Puede del del Dependiente (MCF, D43, SATURACION) ... PARA CADA RESPUESTA NECESITO CREAR UNA SUPERFICIE.

Y Parr Poder CREAR Lo Que Necesito es Que Alguien me APOYE Parr Poder CREAR mas De Una Superficie En Un Mismo plano de COMO SI fuesen "CAPAS" La Misma grafica Con El Modelo.

Les agradezco la Ayuda!! instar Gracias!

en el enlace sí encuentran dos Intentos ..


http://decibel.ni.com/content/docs/DOC-39000


Contributors