LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Hi,
If there is a way to do what Debu is doing on labview 6.1, I need the x and y axes to represent distance moved by the piezo in microns, and the z scale to represent the voltage received by the daq (the color of intensity of the voltage should go from -10v (black) to 10v (white)). A .jpg similar in format to "data visualization.jpg" would work well for me.
 
Thanks
Shummit
0 Kudos
Message 31 of 36
(2,867 Views)
Hi Shummit,
 
I was reading your post and after looking at the LabVIEW 6.1 functions palette, it looks like you should be able to replicate what Debu has done in the data visualization.jpg. There are a lot of features that have changed from LabVIEW 6.1 to the newer versions; this could be your biggest obstacle. However, from looking at Debu's image, you are basically just using array functions, the 3D curve VI and a write to spreadsheet file VI so I think you should have no problems. Have you tried to replicate the block diagram and are you getting an error somewhere or running into some obstacle?
 
I hope this helps!
 
Carla
 
 
National Instruments
Applications Engineer
Message 32 of 36
(2,821 Views)
Hi Carla,
 
Thanks for the response

I did whatever debu decided to show and the wiring is correct (I only need a 3d graph). However, for the parts he did not show, I am unsure if my method works. I am reading incoming voltage data from only the x and y terminals, and I was wondering if this process is ok:

I have an ai waveform acquire vi wired to a get waveform components vi, from which I take the y data output and multiply it to a constant value to convert the units to microns. I then take this converted data and wire it into a “build array” vi (1d) and finally wire this into debu’s program (spec to only the x and y parts). Since my z matrix will just represent the corresponding voltage values with respect to x and y movement, can I just wire the pure data stream into the 3d graph?

Thanks once again for all your help
Shummit
0 Kudos
Message 33 of 36
(2,804 Views)

Hi Shummit,

Thank you for your reply. I was looking at the 3D Curve.vi and it looks like you should be able to just wire the converted X and Y data to the VI. The X and Y inputs for this VI just need to be a 1D array of data that contains the coordinate values. Also, what do you mean by pure data stream? Do you just mean the X and Y values coming from the acquistion?

I hope this helps!

Carla

National Instruments
Applications Engineer
Message 34 of 36
(2,782 Views)

Hi Carla,

Thanks again for the help.

By pure data stream, I just mean the incoming analog input values that are being read from the DAQ. Couple of questions:

  1. How would I label the x and y axes in microns (as well as making sure that the units on each axes would go up to 100)?
  2. Is there any way to plot this exact data in an intensity chart (using 3d graph out won't work)?

Thanks once again,

Shummit

0 Kudos
Message 35 of 36
(2,758 Views)
Hi Shummit,
 
You can label the 3D curve by using some property nodes. If you right-click on the 3D Curve reference and select Create » Property Node, you have several choices for labels, captions, names, etc. You should also be able to manipulate the axis with these property nodes as well.
 
I believe you can also use an Intensity graph/chart. If you look at the example VI called Confocal.vi in one of the previous posts of this thread, it shows a great example of how to use the data for both the 3D curve and the intensity chart. For the 3D curve, you are giving the VI two inputs, the X values and the Y values. For the intensity chart, you are inputting only a 2D array of Z values, where these Z values are the X and Y points. As shown in the example, you will have to build an array with the X and Y values in order to be able to use it with the Intensity chart.
 
I hope that helps!
 
Carla
National Instruments
Applications Engineer
Message 36 of 36
(2,727 Views)