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?
oilyfingers
Member
11-04-200811:05 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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?
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
- 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.
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?
smercurio_fc
Knight of NI
11-04-200811:41 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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?
altenbach
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
- Report to a Moderator
Simply insert an "array to cluster" before the chart terminal. Don't forget to set the cluster size to 14.
(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


MultiChart.png 15 KB
5Kudos
Message 4 of 21
(141,927 Views)
Reply
Re: how do i display multiple plots on one chart?
smercurio_fc
Knight of NI
11-04-200804:12 PM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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?
oilyfingers
Member
Author
11-04-200804:56 PM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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?
smercurio_fc
Knight of NI
11-05-200808:48 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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?
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
- 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?
altenbach
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
- 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! 😄
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


3PlotChart.png 4 KB
1Kudo
Message 9 of 21
(141,391 Views)
Reply
Re: how do i display multiple plots on one chart?
altenbach
Knight of NI
06-30-200907:19 PM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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).


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