LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

intensity

Hola,
 
I am having an issue with my range on my intensity chart. The vi explains what is the problem.
 
 
To add...
I want to plot the intensity value, column 2, of my array to the intensity plot.
Column 1 will state where in the graph the data will plot. 
How can this be done?
 
Thanx!
0 Kudos
Message 1 of 10
(3,918 Views)

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. 🙂

 

0 Kudos
Message 2 of 10
(3,916 Views)

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

 

 

0 Kudos
Message 3 of 10
(3,905 Views)
Sorry, I don't understand how you can get both x and y coordinates from a single column value. If Z only depends on a single colum, a plain x-y graph seems more logical.
 
(e.g. From your pattern, I would have guessed that your third example "2" would result in (2,16). How do you arrive at (1,15)????)
0 Kudos
Message 4 of 10
(3,898 Views)

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

0 Kudos
Message 5 of 10
(3,432 Views)

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.

 

0 Kudos
Message 6 of 10
(3,430 Views)

Try this (LabVIEW 2010):

 

Download All
Message 7 of 10
(3,421 Views)

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

 

 

0 Kudos
Message 8 of 10
(3,380 Views)

 


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.

 

 

  • if it is [x1, y1, x2, y2, x3, y3, ....x8, y8] you would use decimate array with two outputs.
  • if it is [x1, x2, x3, ...x8, y1, y2, y3, ...y8] you woud use split array.
  • if it is some other arrangment, modify as needed.

 

try it! 😄

0 Kudos
Message 9 of 10
(3,374 Views)

solve it..!

spilt array indeed.Smiley Very Happy

 

thanks...

0 Kudos
Message 10 of 10
(3,371 Views)