08-01-2012 02:41 PM
Hi there
I'm trying to plot the intensity chart with X (step), Y (frequency) and Z (power spectra magnitude). I have difficulty to set up the right 2D array source and to assign X, Y and intensity Z. BTW, why the power spectra has so many items dB EU [0] to [8]. Did I miss something in the setup?
Any help would be greatly appreciated!
Melody
Solved! Go to Solution.
08-01-2012 02:55 PM
Hi hygeia,
when someone is using an ArrayToCluster instead of the IndexArray function (which would be the natural way to go here) then that someone is receiving a cluster with some elements numbered from 0 to 8...
- The intensity graph takes a 2D array as input. When you use IndexArray on a 1D array you will result in a scalar value, that doesn't fit with that graph...
- What do you want to achieve by adding appending those "step" and "f0+df" values to that 1D array?
08-01-2012 02:58 PM
The intensity graph takes a 2D array of Z values.
X and Y are related to the array indices based on the offset and multiplier of the axis settings.
The Z values need to be arranged in a regular grid.
Whatever you are showing on your image makes absolutely no sense. Can you attach a simplified VI containing typical data?
08-01-2012 03:41 PM
Hi Altenbach,
Thank you for your reply. Attached is the VI and I have difficulty to save the data now. I will upload it when I get the data.
Thank you!
08-01-2012 03:46 PM
Since you are only gettting a 1D slice at a time, maybe you want an "intensity chart" instead?
08-01-2012 03:47 PM
Hi GerdW,
Thank you for you reply.
1) I want to use f (frequency) as the Y axis in the intensity chart. I guess only the Z value is needed as the input of the intensity graph.
2)I'm quit confusing about array and clusters and also the 2D or 1D data. What would be good ones to use to get only the power spectral density as the intensity chart input.
I've attached a simplified VI above. Please help!
Thank you!
08-01-2012 03:51 PM - edited 08-01-2012 04:00 PM
08-01-2012 04:31 PM
Hi altenbach,
Thank you for your reply. I changed intensity graph to intensity chart. The intensity chart seems also required 2D input.
Here is the error message: You have two or more array data types wired together, but the arrays have different numbers of dimensions. Show the Context Help window to see how many dimensions are required. The dimension of magnitude is 1. The dimension of Intensity Chart is 2.
If I only have the 1D Z value, how to plot the intensity chart?
Thanks!
08-01-2012 05:04 PM
Hi GerdW,
Thank you for the help. Just gave you a kudos.
One more question, how to adjust the color bar ?
Thanks!
08-02-2012 02:22 AM