# value of Z graphic intensity slider

Greetings!

I'm setting up an internship program XY scanning using a graph of intensity.  I have a slider to drag them around, which moves the steps of motor stepper XY; zooms, adjusts the colors in Z & 'contrast', etc.  I have data showing well.

However, I can't figure out how to get the value of Z (so I can't display the legend of big cursor).  As you know in the legend of the cursor when you move a slider, the values of X Y and Z are given.

Unable to find a property to the value of Z node...  It must be simple

Thank you!

Steve

Unless you are using custom axis compensates and increments, this is just the value of the 2D table and indexes for the position of the cursor, so the Board index should get what you want. If you use the axis scale custom update, you must apply the linear transformation between cursor x, the values y and corresponding table indices.

In a better world, the index property of the cursor must indicate both indices of the 2D table and the method would work directly in cases where the axis of scale is customized. This is the reason for my old idea here, please vote for it!

Tags: NI Software

### Similar Questions

• Turn off/on graphic intensity slider programmatically

Hi all

I am building an interface of LV (LV2011) for a stepper motors XY stage.  The system "sweeps" a surface display on the chart.  I've set up the sliders to zoom in on a region of interest (ROI).  Pressing a button resizes the balance for the return on investment (by zooming in on the area).  Sections of code move the XY stage and read a device.  When I want to zoom in on a return on investment and a THIRD slider allows to manually move the XY stage.  I have this work with TWO charts, based on "the region of interest.vi", I found in the dev box.

What I would do, is to have a Boolean switch controlling a GRAPH between setting mini/maxi (0 and 1 sliders) and manual position step by step (cursor) 2.  If the 2 cursor is visible I 0 & 1 not showing sliders and visa versa. Can I do this?

I have attached the example - bascially what I did add a slider to the 2nd graph, entering the XY valleys and sending to controllers engines step by step. Works great!  I'm trying to "combine the two" by resizing the graph orig. with click of a button (works fine) and then click another button to display the cursor of XY stage (and hide the min/max sliders) - it's the brick wall

On a second note - controlling a stage XY using the slider of the graph of the intensity is really nice; However, it would be great if I can control the cursor that is similar to a slider "compel" - someone did he do this?  I guess I have to write a routine that performs some function modulo where. Just curious!

Thank you

Steve

A couple of quick shots: switch between the sliders and use the first two sliders related to the movement of the third.

• Programmatically change the color graphic intensity c# scale

I found this thread but does not compile the code in the last example in the last Measurement Studio

http://forums.NI.com/T5/Measurement-Studio-for-net/change-the-color-map-of-the-intensity-graph-at-ru...

• IntensityColorMap is unknown

• don't know what intensityPlot1 is (I have only one IntensityGraph object)

• intensityGraph.ColorScales [0] does not exist

I have 2 questions:

1. What is the best way to change the range of the color worksheet IntensityGraph?

2. is there a setting to make it all automatic based on Max/Min?  I mean, just the value Max/Mix/number of steps, and she does it all for you?  Maybe there's a setting to set this automatically based on data?

This example is for the graphic intensity of Windows Forms. In WPF, you boot the `Markers` collection on the `ColorScale` assigned to the `IntensityGraph` with the collection of colors you want. To make the colour scale adjusts automatically to data, set the `Adjuster` as a value to the property `FitExactly` and the color scale will update the positions of the markers when data changes.

• What do you think is the best way to overlay a XY trace on graphic intensity?

I have some thoughts, but it was not a bad idea to ask this question to the experts here.  The coordinates of the XY plot can be unconnected with the coordinates of the ranges coordinated axe X and Y of the intensity curve.  A few thoughts:

(1) knowing the X, Y coordinates of the plot, somehow use the draw capabilities to duplicate the XY trace - draw capabilities allow almost anything to be drawn on the charts with a smart programming.

(2) similar to above, but in fact do, first display graphic intensity of the data in the picture in the image control control (the default container that I use is the graph of the intensity, but for this application, I can switch back).  Mask of image control capabilities can be used?

Any thoughts are appreciated...

Ah, I see. You'll really have to do something special. Just your graph XY to be transparent by using the color brush tool, remove the axes X and Y and just place it on top of the intensity card.

• Graphic intensity in CVI?

Hey guys,.

Our laboratory is moving away from Labview and heading for CVI.  We do a ton of imagery and use the 2D graphics intensity in Labview to display all the data.  I can't, for the life of me, find the equivalent feature in CVI 2010.  Can we help pleaes?

Thank you

Austin

In CVI, you use a regular chart control with the functions PlotIntensity or PlotScaledIntensity.

Luis

• misfortunes of graphic intensity ramp 'Centre' of marker...

Hi all!

Like many people here, I am displaying the data on a graph of intensity. In my case, I use graphics cursors to move a XY stage and plot the data on the "Z".  I do this very well using TWO regular graphs; one for the movement and other data. Combinging both at intensity is my next step. I can display data very well on a gray scale (so my sliders are apparent and are visible). Now, the part that has banging me my head against the wall...

The ramp attached example2 is directly from the examples. I just changed the color to a medium gray and I can drag the marker to marker Center up and down, effectively changing the 'contrast' If you want, to make the colors more visible lighter (lighter = a signal louder). I'm trying to do it programmatically in 3.

3 has some real data that I saved as DEFAULT. Once I "touched" the marker of the ramp, I lost the ability to change the ramp like example2. The parameters are the same. Using some examples, I found, that I managed to find a way to move the cursor from the center using a control (note range, so I get 1E-7, 7-2, etc.). But the color will not change when I change it with another control.

I want the exact configuration of the example 2, drag the marker and have the change of color range. The color of the center marker can / will be fixed, I tell myself that I can extract data Z MIN/MAX to set the initial position of the Center marker. I'll hide the ramp and just use a cursor to drag the Center marker up and down to move the "Central gray" up and down the ramp.

How to affect 3? Even manually sliding the marker does nothing now

Thank you!!

Steve

Hello Steven8R,

I played a bit with your screws for a while, hitting my head also, trying to understand why the other reacts differently. It turns out that it is a very simple solution.

In your 3 VI, while the VI is running, right-click on the graphic intensity 2 and then deselect the option "ignore the color Array. Then, you good to go.

As far as coding is concerned, I advise you to replace your reference variables VI with just nodes of property on the graph of the intensity. It will clean up your code and avoid any possible race condition for local Variables.

• Graphic intensity - how to change the gray background

Currently I use a node use-> Get Image to gain a picture of my graph of the intensity.

I want to change the gray background to a flat white or black. Is this possible?

Graphics intensity is not the usual 'export simplified image', I would say that you paint the transparent background image (foreground and background).  If you really like the Peek, you could add a 'Horizontal smooth box' decoration at the front who don't become not part of the image.

• How to remove the decimal value (. 00) of the slider control

Please ask me how to remove the decimal value (. 00) of the slider control and Add (if possible) % in after effects cs6.

I guess you mean to animate text with a slider.

x = Math.Floor (effect ("Slider Control") ("Slider"));

x+" %"

That's all

• Change direction (swap axes) of graphic intensity

I used a graph of intensity to display frequency vs. time.

What I want to do is to change the direction of the updates. Frequency is currently on the y axis, time is on the x-axis, and new values are added on the right.

I would like to have the frequency on the x axis and the time on the y-axis. Not really picky about whether if the graphic flow down or up, but I would like to reverse the axes

Is this possible? It should be fairly simple to implement, but I was not able to find a way to do

Thanks for your response bob - fortunately I ended up implementing the solution me in any case.

Surprisingly, it isn't that painful - which actually makes me even more annoyed that it is not a standard feature of LabVIEW intant

I found this way in 2006 and used it as a starting point

http://www.NI.com/example/25994/en/

My code is attached.

It allows for the chart to be reset in real time and to change the length of the displayed story (currently, this also clears the chart but it would would we to change that and keep the data it)

I hope this helps someone!

• Using the XY Positions of the graphic intensity sliders

Hey all,.

I have an application that displays a graph of the intensity. I have two sliders on the chart that I use to make a box around parts of it to "zoom in". Right now, I manually type in the positions X and Y of two sliders in the areas of digital control, for use on the rear panel. Is it possible to use numbers without enter them into digital orders every time?

Thank you

LANL13

You almost her, simply use the ActCrsr property to set the active cursor before reading the values.  Exploited property nodes sequentially up and down then write the value of ActCrsr on top, then pull down, then add the properties of cursor position.

Standard workflow you get used to using the properties with graphics.  Set the cursor assets/plot then read/write of interest properties, often this is done in a loop For.

• How to set the minimum value of a graphic waveform window?

I have a graphics property of waveform "minimum value", but the graph is not take the value that I gave him. He tends to zero, as well as the first two sliders that I put on the graph. The maximum value "will be" no problem, just like the second slider value. Everyone knows about this problem? Here's a screenshot...

Is there a reason why my chart does not have what I have to say?

Thank you

Sometimes you may have problems if the new minimum is higher than the maximum of old.  Try to write at least again in another node in property after you set the maximum value

Without seeing your VI and some parameters of the example, (old max and min) new max and min, it is otherwise difficult to say.

• z values on 3d-graphics

Hello

I was wondering what I can do for the z axis have visible values. The video is running OK but there is no value appear

on the z axis, only these zeros. Also the same thing happens on a graph of intensity connected to it. I would appreciate your help. Thank you!

Are you sure that the z values are not being rounded up because of the display as a lower accuracy - IE 0.02 being rounded to 0.

If you right-click on the graphic bar and click on 'Properties of 3D-graphics', you can then Descent to the below tab and set the formatting options:

I hope this helps.

• Alignment of cells WPF graphics intensity

I'm used to seeing graphs like this (found on internet)... where the first cell is the same size as the others:

But in my case I have this... cells where data for some aligned reason with numbering Center brands.  As a result, the edge squares are only half of the other places (red squares show this issue).  Is this a setting any?  It's a simple table 6 x 6.  Thank you!

The short answer is that you can specify an AxisDouble for the HorizontalAxis and VerticalAxis of your graph of the current see the Visual range complete the data :

The longer answer is that intensity WPF chart displays values of data centered around their point of origin. This improves the interaction with other components, such as cursors and annotations. Unfortunately, even if we have improved the use of `double` axes in charts able Studio 2015, we left the default axis of the graph of the intensity as type `int` (I created a task to fix this for the next version).

• graphic intensity scale

Hello..

I have a table 2D numerical values... they are of magnitude of some complex numbers in the following order (3.25085E + 7, 2.87497E + 7... so on). How can I make the scale on the graph of the intensity automatically in this range. ???

Thank you

Hello cheggers

thnx... I tried with X evolve range and... I didn't notice the Z scale range. Now it works perfectly.

Thnx

• graphic intensity background color black drunk that I wish I had white

Hello:

I'm trying to graph time-frequency 2D. The background color of grapk intensity is stay black, which is not good for the report. How I can change, no idea of my help please, would be very crowded

Thank you

Moin

The background color of the chart itself is not black: the point is that most of the intensity in your data values is equal to zero, so the corresponding points in the graph are black because of the color of selected Z scale

Just change the color scale for intensities of white for values zero, and that market (see the attached code updated)...

HL

BTW, you don't need no flat sequence in the code...