LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multi graphe display interface

Solved!
Go to solution

Hello everyone Smiley Happy ,

 

I am working with 8 analogics signals coming through a BNC 2110  reprensented as a Waveform in all my design. The User wants to choose and display up to 4 of them in an area. I'm currently implementing a statediagram to choose which graphe etc. To display those data I thought about using either the visibile/position/width|height property of each graph in my statediagram or using a  Mixed Signal Graph. About the second idea, I didn't find yet the way to acces to the "group" property as it seems to automaticaly separate each data by their data type. I am kinda new on LabVIEW so maybe is their an easier way to proceed ? 

 

Moreover it is my first message in this beautiful community so maybe I have to improve the way I explain my issue !

 

If you need any other informations, tell me !

 

Thanks for your time,

 

Baptiste,

 

 

 

 

0 Kudos
Message 1 of 9
(4,120 Views)

Why do you want to use those properties? Why do you want to use Mixed Signal Graph? Just use multiple plots in either in a Chart or a Graph. The option is built-in to show or hide any of the plots (Click on the Plot curve symbol at the Plot Legend, and untick "Plot visible"), and many other things to change (curve width, etc...).

 

Example_VI_chart_8ch.png

0 Kudos
Message 2 of 9
(4,096 Views)

Hi B.Gabillard,

I'm not sure to understand what you want to do. But if it's select the waveform to display, you can store the waveform in an array. connect it to a waveform graph and filter the waveform by their indices. I made you an example VI.

 

Regards

Sabri JATLAOUI - Certified LabVIEW Architect - Certified LabVIEW Developer
0 Kudos
Message 3 of 9
(4,086 Views)

Hi Blokk

 

I can't use this solution. Because all the waveforms have the same average value with different delay. That why I want to use Mixed Signal Graph. 

 

0 Kudos
Message 4 of 9
(4,070 Views)

To explain my self better : 

 

I know how to select  the waveform I want to use (I implemented a state diagram for that), my issue is to display those multiple waveform selected as they have the same average value.

 

It is a bit like a sismograph (https://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/Sisma_three_components.jpg/300px-Sisma_thr...

 

 

So, the easiest way would have been (in a "static" approach) to just put 4 graphs one under the other. But as I got too many signal to display I have to find a way to implement a dynamic approach that automaticaly set the size of the graph.

The Mixed Signal Graph just seemed to organize those plots, my question is if there is another way to do that with the same data type.

 

Thank you for your time, again !

 

0 Kudos
Message 5 of 9
(4,037 Views)

Right now only one thing comes to my mind: use multiple y-axis. It looks ugly in my example, but I am sure you can improve it.

Also, you have to dynamically figure out how to shift your waveforms in y-axis direction so they do not overlap. You can use a multiplier, etc... It is also common in scientific publications, where we wanna show multi curves not overlapping, you just shift them with a multiplier, and you indicate this fact in the corresponding y-axis title text...

 

Example_VI_multi_y-axis.png

 

You could also make all y-axises invisible, except the first, so the Graph or Chart will not look crazy/overcrowded...Like this:

 

Example_VIdvdvd.png

 

 

 

0 Kudos
Message 6 of 9
(4,012 Views)
Solution
Accepted by topic author B.Gabillard

Ok, i think i am too tired, what i created, is a Rube Goldberg code :)))

Obviously you can just use a single y-axis for the second VI... 🙂

 

So the trick would be how to shift the curves so they are nicely visible. And you use one single Graph + 1 single y-axis.

Message 7 of 9
(4,006 Views)

Thank you for all your time :-),

 

I will come back to show our result when finishd :-P,

 

Baptiste

0 Kudos
Message 8 of 9
(3,988 Views)

You also have to figure out the best way not to distort the shapes. So for example, usually an addition is better than a multiplication, see the difference between the first and the second Charts. But this also depends on the axis, for example for a logarithmic Y-scale, a multiplication would only appear as a simple linear shift...

0 Kudos
Message 9 of 9
(3,983 Views)