07-21-2005 05:51 PM
07-21-2005 07:18 PM
Your request is not clear:
Why do you place about 10 marker values at the same place (0) and one at 100 for both axes? This does not make sense. And why do you extract the same subarray twice? You could extract it once and wire it to both property terminals.
The input to an intensity graph is a 2D array forming a regular grid. The indices correspond to the x and y values. To "plot" a point at a certain position, you need to replace the array element with the desired Z value at the correct 2D index.
How exactly does column 1 determine where to plot, (is it x or y)?
I think you need a few more sentences to explain what you're trying to do. 🙂
07-22-2005 09:59 AM
Column 1 will be a location on the x-y plane
z will be the intensity
i want the plot to have a range of: x: 1-16 & y 1-16
if column 1 where to equal "1," it will be the (1,16) location on the graph,
if column 1 where to equal "16," it will be the (16,16) location on the graph
" " "2," it will be the (1,15) location on the graph.
What will be plotted on that certain location pertaining to column 1 will be the intensity value (column 2)
I apologize for my bad grammar and hopefully this clearly explains my issue.
-FredFred
07-22-2005 10:57 AM
03-30-2011 02:16 PM
Hi,
I need to design an intensity graph which is depends on 8 sensor in x-axis and 8 sensor in Y-axis
the z-axis will be the sum of interception data in x and y axis.
in my program i'm using slider to simulate the sensors input voltage. however as you can see the design was quiet messy.
Is there is any proper ways to design this? I'm using labview 2010, some of the function that i use only available in labview 2010.
could anyone advise on this..
Thanks
K
03-30-2011 02:24 PM
First of all, you have a race condition due to improper use of a local varaible. Delete it! Wire the intensity graph directly to the output and make "real matrix" an indicator (if you really need it, else deelte it).
Your loop contains no wait, meaning it consumes 100% CPU whil recalcualting the same thing over and over. Placve a small wait and CPU use will be negligible.
Why don't you use an array of 8 sensors for X and an array of 8 sensors for y and do the sum in a simple FOR loop? I am sure the code would fit on
a postage stamp. 😄
I also think you should use 2D arrays instead of matrices.
03-30-2011 02:32 PM - edited 03-30-2011 02:33 PM
04-05-2011 09:00 AM
Thanks a lot!.. Its very helpful.. Like you see, i'm just a beginner..
I have one other question.
How can I input the 8 sensor in each array?
My input sources is in single 1d array wire. How to divide this array into 2 array (x, y) and feed it into the VI?
Thanks
K
04-05-2011 10:28 AM
Khazman wrote:How can I input the 8 sensor in each array?
My input sources is in single 1d array wire. How to divide this array into 2 array (x, y) and feed it into the VI?
That depends how the 16 elements are arranged in the 1D array.
try it! 😄
04-05-2011 10:51 AM
solve it..!
spilt array indeed.
thanks...