LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

plotting multiple waveforms

does anyone know how to plot multiple waveforms in labwindows/cvi, particularaly a generated waveform like a triangle wave and a "step" waveform
0 Kudos
Message 1 of 6
(5,168 Views)
On a CVI graph you can plot as many signals you want chhosing among the various available Plotxxxxx functions. To draw a waveform you can either use PlotWaveform (in case your X-sognal is regular / predictable) or PlotXY (in case your X-axis signal varies as well as the Y-axis signal like for example a speed vs. current characteristic f a motor). Each plot drawn will have its own handle with wich you can customize it or delete it at runtime after it had plotted.


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 6
(5,164 Views)
i apologize but i was not clear in my question. i wanted to know if you can plot multiple waveforms on the same graph control (on the same plot)
0 Kudos
Message 3 of 6
(5,160 Views)

Howdy JasonT_808,

Yes it is possible to plot multiple waveforms on one graph control.  As Roberto mentioned, you can use the PlotWaveform function. So for example, if your panel's name was PANEL and your graphs name was GRAPH, you could say:

PlotWaveform (PANEL, PANEL_GRAPH, FirstWaveform, Wave1NumPoints, .....);
PlotWaveform (PANEL, PANEL_GRAPH, SecondWaveform, Wave2NumPoints, .....);

This would plot FirstWaveform and SecondWaveform on the same graph control.

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 4 of 6
(5,136 Views)
Hello,
 
I looked at the C files and other files which were in zipped folder of MUltiple graphs in CVI. Actually, will  need to know how to add these files to LabVIEW and use multiple graph features. Currently, I have 8 different graphs and want them to be plotted on one graph using LABVIEW.
 
Do let me know if you any suggestions.
0 Kudos
Message 5 of 6
(4,825 Views)
HI Miaa,

It sounds like your question is about LabVIEW which means you need to post to the LabVIEW forums.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 6 of 6
(4,812 Views)