12-14-2018 05:33 AM
When I hand over data from an array to an Intensity chart is it possible that the chart not only shows me the corresponding color to the value but also the value itself in the rectangle?
For example in the handed over array is one value that is colored red through the z-scale and it's value is 34. By looking at the chart I directly want so see the color and the corresponding exact value.
12-14-2018 05:48 AM
Can you draw sample image, what you want?
I can't imagine how you draw numbers for all points.
12-14-2018 06:04 AM - edited 12-14-2018 06:06 AM
There are a few ways to do this, but no OOTB solution.
First one would be to use a color box and a numeric indicator in a cluster, and put in a 2D array. That does mean you need to fill the color boxes yourself with a meaningful color... And you'll loose cursors, etc.
The 2nd one is to use the intensity graph's picture control overlay. The graph has a property to set the overlay that is over the graph area. You can draw anything in that picture overlay. It would be a matter of getting the graph scales and positioning the numeric text, and to update then when the data or the scales change. See this presentation (warning: not a lot of context in it, just sheets).
A third solution would be to use graph annotations. I don't have much experience with those, but I think they'll do the job. It would require manually placing them at the correct positions, but those positions would be graph scale positions (not pixels, as with the picture overlay).
12-14-2018 06:07 AM
Like the picture annexed to this message.
12-14-2018 06:23 AM
With intensity CHART this enough difficult.
The chart hasn't plot images/cursors etc.
Moreover, you drew 3*3 data, but chart can change own axes.
Are you really need chart?
And you will always draw 3*3?
12-14-2018 06:30 AM
In every case I need an intensity chart or an intensity graph.
And I need it for a continuously updatet 9x3 plot but I really have no idea how to fix this problem.
12-14-2018 06:56 AM
This is draft for one of solution. And it has error: you need inverse numbers by Y.
But I hope you can fix it.
12-14-2018 07:17 AM
Yes, typically, the Y scales in a graph go from top to bottom, max to min. The picture control goes from 0 to height.
The Y coordinates (as calculated right now) needs to be subtracted from the height.
Y (and X) scales can be flipped. So this needs to be considered when working on a general solution.
Another caveat: the picture control values are persistent. So the image is saved with the VI... That can be an unpleasant surprise when the graph is empty by default.