07-18-2005 06:42 PM
07-18-2005 06:54 PM
If I understand you right, you want something that looks like an xy graph but the trace should have variable color. Yes, you need an intensity graph, because regular xy graphs have only one color/plot.
An intensity graph uses a 2D array input (255x255 in your case). Start out with all zeroes. The only thing you need to do is to fill array elements at the desired index pair (x, y) with a number related to your voltage (z). The color scale is easiest done with a property node (see example mentioned below).
Have a look at my example from a while ago. I'm sure you can simplify it to suit your needs. Let me know if you get stuck. 🙂
07-19-2005 09:38 AM
07-19-2005 10:32 AM - edited 07-19-2005 10:32 AM

Message Edited by altenbach on 07-19-2005 08:33 AM
05-11-2006 08:56 AM
I am doing something very similar. I am trying to scan a sample on a microscope and raster the stage around and collect the intensity from the sample in the form of voltages. In the end I want to create an image with the voltage displaying as the z-axis and x and y being the position. I examined the previous examples and I think I have an idea how to use them but I don't know how or were to apply my collected intensities or how to make sure that the x and y values change as the stage moves.
Thanks for any help.
05-11-2006 09:17 AM
Hola H2Oyeah,
Since you are looking for a plot with Z being intensity and X&Y being position, I recommend using a 3D plot. What you can do is create a 2D array for which you load the intensity values for each column and row (X and Y) and submit this array to the 3D plot. See attached image. In regards to the stage moving, can you be more clear?
05-11-2006 09:43 AM
For the stage movement I am having the stage move one pixil, stop, take a intensity measurement, and then move to the next position to do the same over. Right now I have the stage move positive x, up one y, then -x, up one y, etc. The actual numerical position of the stage is not important. I am just want to make sure that the intensity reading fill in the array in the proper corresponding x, y position. Is this better? the 3D graph is a good idea though. I will try that.
Thanks
05-11-2006 10:04 AM
05-11-2006 10:13 AM
05-11-2006 12:41 PM
OK look at the following image,
This is my parameter…
Pixels = 9
Row & Column = pixel location, 0 to 8
What I am doing is initializing my array with a value of 0 for intensity and the dimension as the square root of the total number of pixels, (i.e 3x3 = 9). This sets my array to be in 3x3 form.
Afterwards, I load my array into the replace array subset function and I feed in the intensity value I want to change.
This should get your foot in the door.
Hint:
Play around with the vi and with arrays, it will help you out a lot!
To update the array with new values, you can use a while loop along with a shift register to reload your array.
FredFred