LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Myself values on XY-axes markers in intensity graph. How to?

Hi All,
I have 2D array of Z-values and two 1D arrays of X and Y values. How I can draw myself values of markers on X and Y scales in intensity graph? I tried  min/max, markers values properties, but it I am necessary it be not that.

Help, please...... or any examples.

Thanks, Oleg.
0 Kudos
Message 1 of 11
(8,817 Views)

There are many possibilities. If I uderstand you right, you just want to place some markers on the graph.

  1. Loop through your marker coordinates and replace the value at the correct indices with an out-of-range value (e.g. -100) and set the underflow color to something with contrast (see attached, LV 7.0).
  2. Place a few cursors at the desired points.
  3. etc.

If you had something else in mind, please explain and maybe show a picture or sketch.

0 Kudos
Message 2 of 11
(8,804 Views)
Thank you, but I need draw myself scale's markers on intensity graph. For example, I have 2D array of values with size=10x10. And two 1D arrays size=10 values per ones. How I can draw myself values from 1D arrays for X and Y scales instead default? I have non periodic values pairs in X and Y array in general and can't use the Offset/Multiplier property.

Thanks in advance,
Oleg

0 Kudos
Message 3 of 11
(8,793 Views)
Sorry, now I have no idea what you mean. Can you attach an example,  sketch or picture? 🙂 
0 Kudos
Message 4 of 11
(8,790 Views)
I apologize for the English............. 😞

 

I want drawing the values 1.2, 4.6, 7.1, 10.4, 32.3, 67.5 instead 0,1,2,3,4,5 for X (Time) scale, for example.



0 Kudos
Message 5 of 11
(8,783 Views)

Hello,

 

I think I understand your question, but what you want doesn’t really make sense from what the intensity graph is really plotting.  The intensity graph plots the Z values (your 2-D array of data) based on the colors specified by your marker values.  There is really no X and Y data values to plot.  The values of X and Y are come from dimensions of your data array – think of them as each X or Y value marks one unit of data.  You are able to turn off the scale, take off the numbers, change marker spacing to arbitrary, or other things like this.  You can also add free text labels to the graph to annotate your data.  I would recommend exploring your options by right-clicking the graph and examining the options of the scale.  I think what you’ll want to do is probably enable the scale legend without the numbers, and add text labels to mark the data as you wish.

 

Please let me know if this answers your question, or if you have any others!

Travis M
LabVIEW R&D
National Instruments
0 Kudos
Message 6 of 11
(8,764 Views)
Hi,

I think I understand your question, but what you want doesn’t really make sense from what the intensity graph is really plotting. 




Why? For example, I'm getting some data from CCD (1D), where every measure is some point of magnet field (X axes values) and every CCD array is depend from wavelength (Y axes).  See picture below.

I used Offset and Multipier properties for this case.  See diagram below.


But sometime I need irregular values for axes. And this was my question. The every axes has Marker Values[] property, but I did not undersand how use ones.... 😞

Please let me know if this answers your question, or if you have any others!



As I understood, it's impossible in general. Thanks in any case,
Oleg.

0 Kudos
Message 7 of 11
(8,740 Views)

Hello!

I am a little confused on what you would like to do.  I think I misunderstood you earlier, but changing the offset and multiplier of the scale is possible (as you demonstrate).  For example, assume that you are trying to plot a 4X4 array of data.  By default LabVIEW will plot this starting at (0,0) and mark each whole unit off up to the last point at (3,3).  If you wanted to tell LabVIEW that the data really starts at (3,0) you might wire "3" to the input of Xscale.offset.  If you knew that each measurement was taken at 1.5 "units" appart you could wire "1.5" to the xscale. multiplier.  Then your data would stretch from (3,0) to (9,3). 

The marker values are something different.  The scale marker values indicate where you would like to have a number appear on the scale (to help with reading).  By default you cannot arbitrarily add markers -- LabVIEW determines where to place the markers based on how much room there is and the number that can be printed on the screen easily.  You can set arbitrary marker spacing (by right clicking the graph and going to XScale (or Y scale) and selecting Marker Spacing->Arbitrary).  Then it is up to you to set the marker values you want to see printed -- either though adding them in this menu or by setting the Markers[] property you mention.

Does this help to answer your question?  Please let me know if you need any further help from me or the other LabVIEW users reading!

Travis M
LabVIEW R&D
National Instruments
0 Kudos
Message 8 of 11
(8,727 Views)
Hi Travis,
It is no go..... 😞 Please, explain to me what I do wrong? I'd like that X axes has five markers from array.

Thanks in advance, Oleg

0 Kudos
Message 9 of 11
(8,721 Views)
I am not sure you can do what you want with an intensity graph. Perhaps a table with programmatic control of color in each cell would work?

Lynn
0 Kudos
Message 10 of 11
(8,718 Views)