how do i display multiple plots on one chart? (2025)

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Search instead for

Did you mean:

Topic Options

  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
  • All Forum Topics
  • Previous Topic
  • Next Topic
  • «Previous
    • 1
    • 2
    • 3
  • Next»

how do i display multiple plots on one chart?

Solved!

Go to solution

how do i display multiple plots on one chart?

how do i display multiple plots on one chart? (1)

how do i display multiple plots on one chart? (2)oilyfingers

Member

‎11-04-200811:05 AM

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report to a Moderator

In my program (attached) I am trying to display 14 channels of data on a chart. However, whenever I run the program it only display one plot (not 14) and it seems to be putting the 14 data points into a time series, rather than using 14 different plots. I tried transposing the array before sending it to the chart but couldn't get that to work.

Any ideas?

Dave

Solved!Go to Solution.

heatercalibration.vi ‏391 KB

1Kudo

Message 1 of 21

(141,984 Views)

Reply

Re: how do i display multiple plots on one chart?

how do i display multiple plots on one chart? (3)

how do i display multiple plots on one chart? (4)Dennis_Knutson

Knight of NI

‎11-04-200811:37 AM - edited ‎11-04-200811:38 AM

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report to a Moderator

Creating an array is not correct for a chart. If you had simply turned on Context help and moved your mouse over the chart on the block diagram, you would have seen the image below and the correct method of a multi-plot chart.

how do i display multiple plots on one chart? (5)

Message Edited by Dennis Knutson on 11-04-2008 10:38 AM

Chart Help.PNG ‏11 KB

3Kudos

Message 2 of 21

(141,966 Views)

Reply

Re: how do i display multiple plots on one chart?

how do i display multiple plots on one chart? (6)smercurio_fc

Knight of NI

‎11-04-200811:41 AM

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report to a Moderator

To create a multiplot waveform chart you need a 2D array, as indicated on the Context Help for the chart indicator:

This means that you need to use Build Array to add the new DC value for each channel to the running tally. Also note that you do not need to use the fancy schmanzy script node to do a simple math calculation. Just use LabVIEW primitives

Waveform Charts.png ‏9 KB

Example_VI_BD.png ‏5 KB

Download All

1Kudo

Message 3 of 21

(141,958 Views)

Reply

Solution

Accepted by topic author oilyfingers

Re: how do i display multiple plots on one chart?

how do i display multiple plots on one chart? (7)

how do i display multiple plots on one chart? (8)altenbachhow do i display multiple plots on one chart? (9)

Knight of NI

‎11-04-200804:08 PM - edited ‎11-04-200804:09 PM

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report to a Moderator

Simply insert an "array to cluster" before the chart terminal. Don't forget to set the cluster size to 14.

how do i display multiple plots on one chart? (10)

(Btw:

  • if you would place the STOP terminal in the DAQ loop, you can make it latch action and delete the big sequence. The second frame is no longer needed.
  • Mathscript is a bit overkill just to scale some data. Just multiply with an array diagram constant. If you make it size=14, you don't even need the array subset operation.
  • Since you don't use the timeout event, you can delete it. Less clutter. 😉
  • ...

)

Message Edited by altenbach on 11-04-2008 02:09 PM

how do i display multiple plots on one chart? (11) LabVIEW Champion. how do i display multiple plots on one chart? (12)

MultiChart.png ‏15 KB

5Kudos

Message 4 of 21

(141,927 Views)

Reply

Re: how do i display multiple plots on one chart?

how do i display multiple plots on one chart? (13)smercurio_fc

Knight of NI

‎11-04-200804:12 PM

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report to a Moderator

Oh yeah. Chart not graph. I hate it when I get those 2 swapped. Still! Aargh!!!!!

0Kudos

Message 5 of 21

(141,921 Views)

Reply

Re: how do i display multiple plots on one chart?

how do i display multiple plots on one chart? (14)

how do i display multiple plots on one chart? (15)oilyfingers

Member

Author

‎11-04-200804:56 PM

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report to a Moderator

thanks everyone, particularly altenbach- very helpful, although I thought the tone in the earlier replies was a little condescending!

Mathscript - yes agreed it is overkill here, but I'm a matlab guy and sometimes labview's (cunning and often clever) graphical interface just looks absolutely ridiculous when it's doing normal arithmetic.

Dave

2Kudos

Message 6 of 21

(141,909 Views)

Reply

Re: how do i display multiple plots on one chart?

how do i display multiple plots on one chart? (16)smercurio_fc

Knight of NI

‎11-05-200808:48 AM

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report to a Moderator

No condescension was implied or intended. I'm sorry you saw it that way.

0Kudos

Message 7 of 21

(141,866 Views)

Reply

Re: how do i display multiple plots on one chart?

how do i display multiple plots on one chart? (17)

how do i display multiple plots on one chart? (18)Vaibhav

Active Participant

‎06-30-200902:50 PM - edited ‎06-30-200902:54 PM

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report to a Moderator

Hi all!

Althoughit seems silly, I am not able to see where can I set the Waveform Chart to 2D. I saw the Charts.vi and other examples and they all show cluster icon in the chart terminal. But I don't see where can I make that change.

This topic is closed with solution, but my query is similar so I thought to post here with my small sample VI that I made to experiment with chart properties. I am able to turn ON/OFF the channels, but it shows only channel 1 (plot 0) data.

Thanks ahead!

Message Edited by Vaibhav on 06-30-2009 08:54 PM

Vaibhav

Chart Properties_8_0.vi ‏18 KB

0Kudos

Message 8 of 21

(141,403 Views)

Reply

Re: how do i display multiple plots on one chart?

how do i display multiple plots on one chart? (19)

how do i display multiple plots on one chart? (20)altenbachhow do i display multiple plots on one chart? (21)

Knight of NI

‎06-30-200906:29 PM - edited ‎06-30-200906:34 PM

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report to a Moderator

The datatype of the chart is determined by how you wire to it. Your chart history lenght is a plain 1D array, meaning you have only one plot.

To chart multiple traces, bundle them and wire to the chart terminal. Don't do these silly things wiht propery nodes! 😄

how do i display multiple plots on one chart? (22)

Also, you have way too much code. The visibility property nodes only need to execute when the value changes, and not with every iteration of the while loop. One single property node in a small FOR loop is enough, make an array of three checkboxes and autoindex over it with "active plot" wired to [i].

Message Edited by altenbach on 06-30-2009 04:34 PM

how do i display multiple plots on one chart? (23) LabVIEW Champion. how do i display multiple plots on one chart? (24)

3PlotChart.png ‏4 KB

1Kudo

Message 9 of 21

(141,391 Views)

Reply

Re: how do i display multiple plots on one chart?

how do i display multiple plots on one chart? (25)

how do i display multiple plots on one chart? (26)altenbachhow do i display multiple plots on one chart? (27)

Knight of NI

‎06-30-200907:19 PM

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report to a Moderator
altenbach wrote:

Also, you have way too much code.

Here's a slightly more elegant way to do all this (LV8.6).

how do i display multiple plots on one chart? (28) LabVIEW Champion. how do i display multiple plots on one chart? (29)

Chart_Properties_8_0MOD.vi ‏16 KB

1Kudo

Message 10 of 21

(141,382 Views)

Reply

  • «Previous
    • 1
    • 2
    • 3
  • Next»
  • All Forum Topics
  • Previous Topic
  • Next Topic
how do i display multiple plots on one chart? (2025)

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Margart Wisoky

Last Updated:

Views: 6354

Rating: 4.8 / 5 (58 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Margart Wisoky

Birthday: 1993-05-13

Address: 2113 Abernathy Knoll, New Tamerafurt, CT 66893-2169

Phone: +25815234346805

Job: Central Developer

Hobby: Machining, Pottery, Rafting, Cosplaying, Jogging, Taekwondo, Scouting

Introduction: My name is Margart Wisoky, I am a gorgeous, shiny, successful, beautiful, adventurous, excited, pleasant person who loves writing and wants to share my knowledge and understanding with you.