LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display multiple waveforms on chart

I need help.  I try to display multiple waveforms on a single chart.  Two waveforms (Ideal PWM and Target Pressure) are made up of a single point instead of waveform or array; thus I have to build them into array.  The problem is that I can display all the waveforms, but once awhile the chart shows a missing point on the waveform.  I have attach a screen shot of my diagram.  I'm using LV 8.6.  Can anyone help?  Thank you very much.
 
BC  


Message Edited by DSI on 04-14-2008 11:46 AM
0 Kudos
Message 1 of 9
(3,602 Views)

When you are allready working with LabVIEW 8.6, I would suggest to go to ni.com/beta.

Thanks, Christian

0 Kudos
Message 2 of 9
(3,567 Views)
Are you sure you're running 8.6? (Those who are beta testing 8.6 should recognize why I think it's not.)
0 Kudos
Message 3 of 9
(3,559 Views)

I'm apologize.  I'm using LV 8.2.  I was reading about LV 8.6 beta test, and my hand is typing 8.6  🙂

BC



Message Edited by DSI on 04-15-2008 01:10 PM
0 Kudos
Message 4 of 9
(3,553 Views)
How do you know you're missing a point on the waveform? Is this on the waveform you created from a single point, or on one of the other ones? How many data points in your waveform? There is a certain practical limit to how many points you will be able to discern on the screen.

A couple of minor programming tips:
  • The 2 Boolean inverters are not necessary. The one on the left can be eliminated by simply swapping your True and False cases. The one on the right can be eliminated by inverting the input at the compound arithmetic function. Right-click on the top input and select "Invert". A little circle will appear at the input indicating it's being inverted.
  • In your indexing of the 4 elements you don't really need the constants 0,1,2,3. The Index Array function will automatically index out in order when you resize it.
0 Kudos
Message 5 of 9
(3,536 Views)

Hi, smercurio.  Thank you for your help.  The missing point (empty point) is on the waveform that is created from a single point (labled as IDEAL PWM and Target Pressure).  When displayed by itself, there is no missing point.  When combined with other waveforms, once awhile it shows missing point.  Each waveform array has 50 points except for the Ideal PWM and Target Pressure (1 point array).  So I don't think I have memory issue in term of displaying it. 

BC 

0 Kudos
Message 6 of 9
(3,513 Views)

Here is the picture of the front panel.  The picture on the top has a missing point on the top.  The bottom picture has a missing point right at the edge; thus the edge is gone.

BC

0 Kudos
Message 7 of 9
(3,506 Views)
I would suggest creating an array based on the size of the other waveforms that are being graphed. Presumably you have a certain number of points for all the other waveforms, and they all have the same number of points for that iteration. Thus, create a Y array for the 2 values that you want to graph to be of the same size, rather than a single point. If you run the attached VI in highlight mode you can see what I mean.
0 Kudos
Message 8 of 9
(3,499 Views)

Yes, yes, yes.  It works.  Thank you so much for your help.  No more missing point on the wave form.  You're awsome.  Thanks again.

BC

 

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