LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xy graph deleting areas with no plots

is it possible to clear/delete areas in a xy graph where no plots are displayed, the time axis should show the original times of signal sections, so that I can line up extracted signal sections without gaps (the gaps are normal about 1 second!)?

 

thanks in advance

 

signalcut.JPG

0 Kudos
Message 1 of 10
(1,177 Views)

No. Graphs are not able to manage scales with holes. At the very minimum, you should hide the inbuilt scale and use a Picture indicator to draw the scale yourself, which is by no means an easy task, although not impossible.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 10
(1,154 Views)

Or go 100% picture control of course.

 

You'll loose interactivity, but you might not need it.

 

You can give each plot it's own X scale. Use Marker Values[], offset and muliplier, you can tweak the values shown. However, the first and last markers are always added...

 

Or, hide the X scale and don't show any X scale. Instead, keep a record of the time at each sample and show the original time as the user moves a cursor.

 

Or show the time in another plot... Not as nice as a scale, but functional.

 

It feels to me you can make a more intuitive user interface, but it's hard to help when you know all the details.

0 Kudos
Message 3 of 10
(1,148 Views)

You probably need to define what you mean by "clear" and "holes". If all sections and gaps are the same length and you only want a single marker in the center of each segment, that should be easy to do with the current capabilities. (Defining markers). Of course the x-axis will no longer be linear in x (just in segments).

 

It also almost seems like your x-axis points are spaced equally. This means you don't even need an xy graph!

 

Can you attach a simple VI so we don't need to start from scratch. Would it be sufficient if all visible traces have the same color or do you really want to switch color with each segment?

0 Kudos
Message 4 of 10
(1,115 Views)

@altenbach wrote:

If all sections and gaps are the same length and you only want a single marker in the center of each segment, that should be easy to do with the current capabilities. (Defining markers). Of course the x-axis will no longer be linear in x (just in segments).


Here's a quick illustration of what I meant (these are waveform graphs, not xy graphs):

 

(One problem are the edge markers. Please vote for this old idea! )

 

altenbach_1-1648830810080.png

 

 

Message 5 of 10
(1,107 Views)

the segments have the same length and can have the same color, but the gals have not the same length, it is important that the original x-axis values (time) are displayed.

 

i also tried the xy-plotmatrix, but all combinations are displayed here, i only need the diagonal graphs, is there a way to display only these?

 

i attached a simple VI (LabVIEW 2020) 

 

Screenshot 2022-04-02 144330.png

 

 

0 Kudos
Message 6 of 10
(1,080 Views)

@kuegerls wrote:

i also tried the xy-plotmatrix, but all combinations are displayed here, i only need the diagonal graphs, is there a way to display only these?


If it's OK to have this data in separate graphs, then it's absolutely no problem.

 

Simply split and put it in 3 graphs. Set the X Scale with offset and multiplier (or use a waveform data type).

 

If you want a single X scale with gabs, then the answer is no.

0 Kudos
Message 7 of 10
(1,058 Views)

i don't always have 3 sections, the number varies, a solution to create graphs programmatically would be helpful (like the xy-plot matrix but only the diagonal elements)

0 Kudos
Message 8 of 10
(1,054 Views)

If you can guess a maximum number of graphs, you can create as many Graph indicators as you need, then show-hide-move-resize them accordingly.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 9 of 10
(1,050 Views)

@kuegerls wrote:

i don't always have 3 sections, the number varies, a solution to create graphs programmatically would be helpful (like the xy-plot matrix but only the diagonal elements)


This isn't OoTB functionality that you're looking for.

 

The solution is going to be a compromise between  functionality and programming effort. You can probably get this to work at least 95% of what you want, but we don't know where to compromise. Only you do.

 

For instance, in stead of showing all graphs, you can show just 1 and let the user browse through segments with a scrollbar. But we have no way to know if that is acceptable.

 

A picture control as X Scale would be able to do everything you're asked for (so far). It won't be easy, but I'm sure more then one of us have done similar things several times.

 

Maybe if you should share your ideal GUI and why it's ideal, and maybe where you'd be swilling to compromise, I'm sure we can make this work.

0 Kudos
Message 10 of 10
(1,043 Views)