LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot Multiple Traces

 
 
I'm having a rather bad time with this piece of code, attached. If there's anyone who could help me with it I'd be extremely grateful.
 
I'm generating several voltages which are put into a 2D array. Dimension 1 (each column) represents a different channel and Dimension 2 (the rows) represents each new measurement. As each new measurement is taken the "Position" variable changes. So, my  final goal is to plot for each channel a voltage as a function of time.
 
I can't tell what's wrong with my code; I'm generating a new X and Y array at each cycle which I bundle and CAN NOT plot. The cluster comes out with the values that it should (X above, Y below with the same number of both) but when I try to stick them into the XY graph it won't allow it.  
0 Kudos
Message 1 of 9
(3,269 Views)

is it possible to save your VI for LV 7.1?

I don't have LV 8....

0 Kudos
Message 2 of 9
(3,255 Views)

I do not know if I follow you compeletely but it sounds like tou want to plot more than one process variable but you have different dt's for each.

If so the waveform datatype is handy for this situation.

 

The example illustrated below will plot two variables with different non-periodic dt's.

I hope this helps,

Ben

Message Edited by Ben on 04-10-2007 06:38 PM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 9
(3,251 Views)

 

Sorry titi_nico,

Labview 8.2 only lets me save to previous version 8.0 as far as I can tell.

 

0 Kudos
Message 4 of 9
(3,229 Views)
 
 
It seems like this one's too hard, even for the best of you.
 
Yes, that's a challenge.
0 Kudos
Message 5 of 9
(3,210 Views)

I feel like you are playing a game of "Guess what I am thinking."

Please post a simple example (not the top VI with a bunch of missing sub-VI's) that demonstrates what you are attempting.

Please be clear in what you are attempting. I am only a volunteer here so I do not have time to devote to trying to guess.

Please help us help YOU!

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 9
(3,199 Views)

 

Well ben, sorry,

I'm not so sure that it would have been that hard to work out but here's the necessary to show the problem:

0 Kudos
Message 7 of 9
(3,180 Views)
I have no idea how it happened but the XY graph (in fact all types of graph) are completely corrupted in your VI. Do you notice that you have no scale on your y axis. Try deleting it and copying the block diagram into another VI. Drop another xy graph onto the front panel. I did that and everything seemed to plot correctly.
Message 8 of 9
(3,171 Views)

 

Well, that's why. I've wasted so much time with this it's untrue. It works now.

 

Thank you, thank you.

0 Kudos
Message 9 of 9
(3,158 Views)