LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I plot Z-axis as a color in Intensity Graph

Hello Everybody,
 I am using Labview 7.1.  I am scanning pixel by pixel (say, 100 micron by 100 micron along X and Y respectively, with different step size, which means that their dimensions are different) and the intensity recorded in each pixel is recorded along Z-axis. Instead of ploting XYZ plot, I prefer to visulalize in a two dimensional plot, where, X and Y are scanning dimensions and the intensity in each pixel as color.  
Apart from this issue I would also Like to know,
 
1) I would like to see the dimension of each pixel using cursur. e.g. I have several bright spots in the scanning region, when bring the cursur at each bright spot, it will show me the XY dimension of it. It will be great if it shows intensity as well. 
 
2) I want to put a threshold value of intensity (which is user defined) so that I can clearly resolve the bright spots.  
 
3) How can I get the .jpg file of image recorded in a specific scanning region
 
Thanks for your anticipation. I will be happy if you discuss with .vi file and .jpg file
 
Attachment: XYZ.txt
0 Kudos
Message 1 of 36
(7,873 Views)
 

Hi Debu,

I have found some really great knowledge base articles that show how to plot the z-axis of the intensity graph as a color. The first one shows how to change the color of an intensity graph. I am also including a link to how to plot data to an intensity chart. I think by combining the ideas from these three KnowledgeBase articles and looking at the NI Example Finder examples of intensity graphs, it should help you get started. I hope this helps!

 

Carla

National Instruments
Applications Engineer
Message 2 of 36
(7,805 Views)
Thanks Carla,
 
I want to update my visulalization system. Currently, I am using the XYZ plot (Please find the attachment for block diagram).  I hope it it will help you to understand my problem.
 
Thanks
Debashis 
0 Kudos
Message 3 of 36
(7,795 Views)
Hi Debashis,
 
Thanks for the information. Here are some answers for you questions listed above.
 
1. You can definitely use cursors to show the X, Y and Z values in the intensity graph. You can right-click on the Intensity graph, and select Properties. Under the cursors tab, you can Add a cursor (or multiple cursors) to the graph. You can then add a cursor legend to the plot by right-clicking on the Intensity Graph and select Visible Items»Cursor Legend.
 
2. You can also put a threshold value by using the Color bar that is attached to the right side of the intensity graph. You can add markers and change the color of the graph to see different threshold changes.
 
3. You can get the .jpg file of image recorded by creating an invoke node from the intensity graph. You can do this by right-clicking on the intensity graph and select Create»Invoke Node»Get Image. You can then use the Image Palette (Functions Palette»Programming»Graphics and Sound»Graphics Format) to save the image in any format you want.
 
I hope this helps!
 
 
 
 
National Instruments
Applications Engineer
0 Kudos
Message 4 of 36
(7,748 Views)

Ths thread includews code that demonstrates how to plot scan data as slices.

Advanced 3d graph techniques are explained here.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 36
(7,728 Views)

Thanks Ben,

 It's great to get a response from you. I hope you understand my probelm: let me tell you once again, I am not scanning long Z-axis, so my problem is simple in a sense that I have only  one XY scanning region( 100 micron by 100 micron) and Intensity. Could you please attach the .vi file with your message.

I am looking forward to get a response from you.

Thank you

Debashis

    

0 Kudos
Message 6 of 36
(7,723 Views)

"...have only  one XY scanning region( 100 micron by 100 micron) and Intensity."

That is what both the questioner in this thread wereOne The first was  doing.

http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=282238#M282238

There is code in that thread.

The first Q'er was imaging slices of a mouse tendon.

The second was analyzing bubbles in a fluid.

In both cases they had an intesity value for a set of XY coodinates.

Please look at that code and attempt to apply your data to those examples. As I wrote earlier there is another thread here

http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=144155#M144155

where I show you how to exploit the 3D graph.

If you still have trouble, please post ALL of your code along with sample data and someone (I guarentee it will be me, since I have a couple of old cars that are taking up my free time) would be able to advise on how to proceed.

GO for it!

and

Have fun!

Ben

PS If your sample code is real and you let us know what we are looking at, it may tempt someone to help out more. Smiley Wink



Message Edited by Ben on 03-16-2008 08:55 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 36
(7,714 Views)

Thanks Ben,

"....In both cases they had an intesity value for a set of XY coodinates...."

 I have only one surface (XY)  instead of number of XY surface.

Debashis

0 Kudos
Message 8 of 36
(7,694 Views)

Hi Ben,

Please find the attachment.

1. Data 1 ( XY , Intensity)

2. Data Visualization .jpg file of .vi file

Download All
0 Kudos
Message 9 of 36
(7,677 Views)
Hi debu,

please attach the vi and not an image of the block diagram. This way you can also include image data by setting default values of controls!
Your data file has an "interesting" format: there are much more z values than x or y? Could you please include a proper loading routine or save your data as real csv-formatted values (always a tripel of xyz)?

Btw. to get the number of array elements you can use the "multiply array elements" node (math palette) instead of getting array elements (using 2 "index array" nodes where only one is needed) and multiplying them.Smiley Wink


Message Edited by GerdW on 03-17-2008 04:59 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 10 of 36
(7,672 Views)