01-26-2016 07:14 AM - edited 01-26-2016 07:23 AM
Hello everyone ,
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,
Solved! Go to Solution.
01-26-2016 07:37 AM - edited 01-26-2016 07:39 AM
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...).
01-26-2016 07:47 AM
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
01-26-2016 08:17 AM
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.
01-26-2016 09:40 AM
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 !
01-26-2016 10:25 AM
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...
You could also make all y-axises invisible, except the first, so the Graph or Chart will not look crazy/overcrowded...Like this:
01-26-2016 10:33 AM - edited 01-26-2016 10:35 AM
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.
01-26-2016 11:08 AM
Thank you for all your time :-),
I will come back to show our result when finishd :-P,
Baptiste
01-26-2016 11:19 AM
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...