From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-29-2015 04:23 AM - edited 12-29-2015 04:27 AM
hi, am new to labview. i have a doubt regarding the smoothing of the graph. i fed the values of x and y axis in the intensity graph and made it to look like foot. after making it looks like the below attached image, i want to smooth the intensity graph .pls help me.
12-29-2015 08:38 AM
Post your code (this usually means "Attach a VI" -- if you have multiple VIs, compress the folder that contains them and attach the resulting .ZIP file).
Bob Schor
12-29-2015 09:58 AM
You can try 3D graph - surface.
With the following settings it looks like interpolated intensity graph:
Right click, select 3D plot properties
Graph
-> View direction -> towards XY plane
-> View projection -> Orthographic
Surface
-> Surface -> Color mode -> Interpolated shading
-> Surface -> Mesh -> Off
12-29-2015 11:44 AM - edited 12-29-2015 11:55 AM
thanks for the reply. i attached the vi. i want to smoothen the graph.
12-29-2015 01:01 PM - edited 12-29-2015 01:26 PM
Please explain what you mean by :smoothing". It could man many things, for example:
Plese explain what kind of result you expect from the given data.
(... and also please use regular array container sizes with scrollbars, not array controls that are dozens of screens high. Also you should not wire N of the FOR loop when autoindexing.)
12-29-2015 08:25 PM
12-29-2015 11:41 PM
sir, am attaching the image of intensity graph after feeding the values to x and y. the output has sharp edges, i want to smoothen it.
12-30-2015 12:12 AM
Your image has sharp edges because the "pixels" are large squares. What you should do is resample the data at a higher resolution using bilinear ipterpolation.
An example is given here.
You also need the subVI from here.
Here is a coarse 4x4 grid resampled at a 40x40 grid.
While you are at it, please also vote for this idea. Thanks.)
12-30-2015 01:01 AM - edited 12-30-2015 01:02 AM
12-31-2015 12:54 PM - edited 12-31-2015 12:55 PM
Of course in this particular case it would be easier to use the stock tools from the interpolation palette. Here's that version: