LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Two Spectrums, One Panel

I'm trying to setup a panel to display two spectrums side by side for comparison, but i am not sure how to get around this. It seems that what i am doing now is simply melding two graphs together. The first spectrum prints, and then the second one cuts the other one out instead of superimposing it on top of the other. Any input would be great.
0 Kudos
Message 1 of 5
(3,375 Views)
It's difficult to try helping you without knowing at least a bit of your problem.

As a principle, you may want to display two curves on a unique graph or use two graphs side-by-side or one on top of the other: these cases must be treated differently. Please add some detail of your application, an UIR with the panel you intend to use or just an image of what's happening so that we understand your difficulties.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 5
(3,370 Views)
Hello,

Is mentioned above: a description of your graphs/wishes/requirements will help as there are many possibilities. Just as an idea for a graph I made not long ago:
plot first graph with green and using left Y-axis
plot second graph with blue and using left Y-axis
plot ratio/difference of both graphs with red and using right Y-axis
and I used a ring to select the operation ratio/sum/deviation/prod
and I used a binary switch to select linear or log Y-axis

Especially if the data are close (and the graphs will be overlapping) write down for youself what you want to show ! The data ? of the deviation ? or the dynamic range ? or ... ...

Regards, Jos
0 Kudos
Message 3 of 5
(3,361 Views)
Sorry about that. What the program currently does is takes a certain domain and pops open another window using those constraints. From there, i use those points and put them through an algorithm that cleans out the points and displays a revised graph in the original panel. I could try to get it to open another panel completely but it doesn't now. What i need it to do is take another graph and place it on top of the other graph. I just don't know how to do that. I honestly haven't really used the CVI suite for this yet, so that is probably a large part of the problem, but the program seems to not want to add a second graph on to an existing one.
0 Kudos
Message 4 of 5
(3,336 Views)
Hello fishel,

As mentioned previously, you can plot two different sets of datapoints on different y axis (if this is what you mean by wanting to plot two different graphs). I would suggest taking a look at the 2yAxis shipping example in the CVIdirectory\samples\userint folder.

Let me know if that helps. Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 5 of 5
(3,315 Views)