LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Intensity or some other graph?

Hello all,

 

I'm trying to create a graph where XY axes are Freq and Amp and the intersection point is a color representing the failure mode of test I'm running.

 

 

I've tried using an XY graph having different plots represent the different failure modes and colors, however, the spacing between points is off-putting and makes the final graph hard to see.I've tried resizing the points to where they fill up the area, but the test ouptut will be dynamic and the scales of each axes will vary from test to test and I'd like to keep a static graph size. Also, with larger scans the density of points (with the larger setting) makes individual points hard to see.

 

I've also tried using an intensity graph and using the Z value as the color code, unfortunately, the color is not at the intersection of X and Y axes, it fills in the area between the intersection.

 

Is there any other graph type I can use or is there a setting I'm missing in either the XY or intensity graphs that can help me with my problem?

 

It's been successfully created in Matlab using the Image function, but I'd rather not have to interface with Matlab, if at all possible.

 

Thank you

0 Kudos
Message 1 of 8
(3,224 Views)

You could use a 2D picture indicator.

 

And, yes. I always thought the axis markers of intensity graphs should be centered on the intensity pixels. (Problem is most noticeable with small arrays). New idea?

0 Kudos
Message 2 of 8
(3,212 Views)

I'm going to have play with this a bit. From the example vi given, I believe it will work. Will check back in with kudos and to mark as a solution.

 

Thank you very much for putting me on this path.

0 Kudos
Message 3 of 8
(3,200 Views)

OK, I tried using a picture graph. I'm attaching my vi. The data is saved into the input array, so if you run it, it will populate a regular XY plot and an XY multiplot with picture, you'll just need to scroll up and down. Some things I can't figure out:

 

1. How do I change the background of the picture to black? Is it as simple as inserting a black background picture as an input?

2. How do I fill in the squares?

3. How do I eliminate the white space in between? This is the same problem with the regular XY graph. Or how do I change the size of the squares?

4. If I were to approach this problem from a different angle and use the draw rectangle function, would I be able to plot those rectangles on this graph somehow or can I draw a series of rectangles and have the axes information overlayed on top of that?

 

Thanks again for your help.

 

 

0 Kudos
Message 4 of 8
(3,192 Views)

I thought I would take a look at the vi, but it is missing the post processing data structure.ctl.  Would you be able to provide that so LabVIEW can run the program successfully?

 

Respectfully,

 

Wayne T. | Application Engineer | National Instruments
0 Kudos
Message 5 of 8
(3,148 Views)

Wayne,

 

Attached it the ctl you asked for. I had to try to solve it in a different way, but first, I guess it would be helpful to explain what I tried that didn't work.

 

1. A regular multi-plot XY graph did not work because of the amount of space in between points and the size of the points became an issue when they were too close together

2. I tried plotting using the multiplot XY picture graph function, but had the same issue with larger white spaces in between, plus, I was unable to control the point size and the fact that the points were not filled.

3. I tried manually drawing the graph and trying to use the multiplot xy picture graph as an overlay, but since I don't control the pixel size of the graph, it didn't work out when I changed the number of squares (points) in the graph.

 

Finally, since I had already created a function that drew squares as my points, I used the draw lines picture functions and manually drew the grid plot and ticks and labels and legend. It was a bit tedious, but a good learning experience on using these functions that I had never used before.

0 Kudos
Message 6 of 8
(3,125 Views)

That is an intense display J, and looks like you were able to overcome these limiting factors you experienced.  For the most part, LabVIEW contains many useful prebuilt displays, and this is just one of those things where something didn’t already exist.  Perhaps altenbach said it best with “New idea?”

Wayne T. | Application Engineer | National Instruments
0 Kudos
Message 7 of 8
(3,112 Views)

Thank you much. Yes, I agree, it could be a new idea. Not sure how often people would use it, but your never know.

 

Now, on to my next issue....That will be another thread though. LOL

0 Kudos
Message 8 of 8
(3,106 Views)