LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple lines on the same waveform graph

I know it's a silly question, but I can't figure out how to put more than one line on the same waveform graph.
0 Kudos
Message 1 of 9
(12,598 Views)
You need only to bundle each plot line you want into a cluster, and then feed the output of the bundle to your waveform chart!
0 Kudos
Message 2 of 9
(12,588 Views)
...so I need to feed the graph a cluster of clusters of arrays of x-y points?
 
I'll give it a shot.
0 Kudos
Message 3 of 9
(12,574 Views)
Looking back I could've been more clear.

Have a look at this example which came from the NI examples

EDIT: Saved in 8.0.1

Message Edited by Day on 09-08-2006 08:45 AM

0 Kudos
Message 4 of 9
(12,568 Views)
*Sighs* The current graph uses an array of clusters, with each cluster containing a X and a Y. I've tried feeding an array of arrays of clusters and a cluster of arrays of clusters. Neither one works; the graph won't accept the input. Is this because I'm feeding the value through a property node?
 
 the property node is the only location in the code where anything about the graph besides the cursors is changed. I've attached an image of the relevant portion of the code in question.
 
[Edit:] I have LabVIEW 6.1 so I cannot view your code.

Message Edited by BobChuck on 09-08-2006 08:57 AM

0 Kudos
Message 5 of 9
(12,567 Views)
Sorry about all the confusion Bob.

Here's an image of the block diagram and front panel (both tabs) of that example.  I feel like it'd give a better explanation than I would..


Message Edited by Day on 09-08-2006 09:12 AM

Message 6 of 9
(12,557 Views)

BobChuck,

The example that Day has posted is available in LV6.1.  Just search the examples for "waveform" and pick "waveform graph" ... or you can find it in: C:\Program Files\National Instruments\LabVIEW 6.1\examples\general\graphs\gengraph.llb\Waveform Graph.vi

=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 7 of 9
(12,541 Views)

Hello,

 

I am programming a CCD and I was wondering How can I plot two lines on an "intensity graph" instead?

- I tried plotting them but only one of them shows, I think there is a command that lets you keep the first line as well, but I dont know where it is,

- Also, is there a way I can integrate the data between the two lines I draw?

 

- is there a smarter way to plot the two lines other than building two different "events"?

Please see attached

0 Kudos
Message 8 of 9
(11,849 Views)

I'm not familiar with intensity graphs, but I played around with the vi you posted and I think I figured it out. Please see attached.

 

I basically just chained all the "new picture" lines together and then loaded the whole thing into the property node, rather than trying to assign individual pairs to the same property node independantly. I also added a second color box and a "control-5" for the second set of points, so the lines wouldn't be on top of one another (and thus hidden).

0 Kudos
Message 9 of 9
(11,842 Views)