LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

display array of clusters on a waveform graph

This is very frustrating. I'm trying to write a simple program so I can test parts of my code. I have a 1-D array of clusters (of 2 DBLs) that I want to display on a waveform graph. I know this can be done because the main program does this. However, I cannot wire my 1-D array of clusters into a standard waveform graph; it will not adapt to the source type.
 
I tried using the graph from the main program, but that doesn't work either. I don't know WHY it doesn't work; there are no errors. It simply does not display anything. I have no idea what the previous programer changed/added/removed from the current graph, so I cannot reproduce or counteract the effects.
 
How can I make a simple change to a normal waveform graph that will enable it to accept a 1-D array of clusters (of 2 DBLs)?

Message Edited by BobChuck on 09-13-2006 09:03 AM

0 Kudos
Message 1 of 8
(3,180 Views)

A waveform graph cannot accept a cluster of two dbls to plot and certainly won't accept an array of clusters. On the other hand, a waveform chart will. You just have the wrong type of indicator.

When you are programming, make sure you have context help turned on. If you are on the diagram, the context help will display the data types that can be wired to graphs, charts, and xy graphs and can usually be used to explain problems you might be having.

0 Kudos
Message 2 of 8
(3,172 Views)

I'm sorry, but I have to disagree. To initialize the waveform graph, there is a 1-D array of clusters (of 2 DBLs) wired into it. I've attached the relevant code.

It CAN be done. I know this for a fact. I have code that does it. I would like to know HOW I can reproduce it.

0 Kudos
Message 3 of 8
(3,167 Views)
Post the VI with the actual chart or graph - not a reference. What you have in the picture is an XY Graph I believe.

Message Edited by Dennis Knutson on 09-13-2006 08:58 AM

Message 4 of 8
(3,159 Views)

Hi Bob,

I have to second Dennis' request for you to post the code.

From the image you posted in looks like you are presenting an array of clusters where each cluster is an X-Y pair of complex ... ?

Not sure.

But if you posted your code we could get you an answer pronto!

So please help us help you by posting some code.

Ben

Message Edited by Ben on 09-13-2006 10:27 AM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 5 of 8
(3,138 Views)
Well, that explains that. I had never considered that a graph with reference nodes labeled as "waveform graph" could in fact be a "xy graph", but it is.  At least, the colors of the xy graph match what's in my code.
 
Thanks for the help!
0 Kudos
Message 6 of 8
(3,106 Views)


@BobChuck wrote:

... I would like to know HOW I can reproduce it.


Dennis is right ... it's an XY Graph.

If you have an XY Graph in LV6.1 and create a reference to it, the reference will say "WaveformGraph"; the property node for it will say "WFGraph" ... but it's still an XY Graph.  There were fewer ClassIDs back in 2000/2001.  If you open and run attached VI in LV8, I think the class ID will be 82 or 83; in LV6 it's 24.

<edit> I need to learn how to type faster</edit>

 

Message Edited by Donald on 09-13-2006 02:14 PM

=====================================================
Fading out. " ... J. Arthur Rank on gong."
Download All
0 Kudos
Message 7 of 8
(3,101 Views)
That is one reason I suggested that you (and just about every other programmer, myself included) have context help turned on. Moving the mouse over the terminal on the block diagram would have told you instantly whether it was a regular graph or XY graph.
0 Kudos
Message 8 of 8
(3,100 Views)