LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why my graphs show peaks?

Solved!
Go to solution

Hello,

 

I wanted to know why my graphs plotted peaks instead of line graphs. As can be seen in the attached images:Picture1.jpg Picture2.jpg

The graphs on the left side of the first image and the graph on both sided of the second image show they are being plotted as peaks. All graphs have clusters indicators next to their legend. I keep a look out to see if the indicators show zeros or oscillates for low and high reading but it doesn't. The indicators are very consistent. The graphs that are showing linear behavior (no peaks) get the data from the same source as the other graphs and have the same settings. However the outputs are different.

 

Can anyone help me fix this? Thanks

 

Jose

0 Kudos
Message 1 of 25
(3,568 Views)

You've wired your graph wrong.  I can't see what you're trying to do from a picture but this is a pretty common mistake.  Check the examples for how to use graphs and charts properly.  Post your VI if the examples don't clear things up for you.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 2 of 25
(3,558 Views)

Jose Perez,

 

It is very difficult to tell what is happening from the small images.  Attach your code with some data saved as default.

 

One possibility is the the data arrays have been transposed (rows and columns interchanged). That can create appearances similar to what I think I am seeing.

 

Lynn

0 Kudos
Message 3 of 25
(3,556 Views)

Jose,

You likely have a different setting on 'Transponse Array' parameter on the plots.  Check the following setting....

0 Kudos
Message 4 of 25
(3,555 Views)

I belive that the wiring is good. Here is the block diagram. The "Array" is an array of Date/Time stamp Code.png

0 Kudos
Message 5 of 25
(3,544 Views)

Electromecha,

 

I don't see that option when I right click the graph. Anyway, Autosize Plot is selected.

 

Jose

0 Kudos
Message 6 of 25
(3,541 Views)

yikes what is with all that feedback nodes in your VI?

0 Kudos
Message 7 of 25
(3,530 Views)

Jose,

The 'Transpose Array' setting is only available if you input Arrays of data to the Chart or Graph indicator.  In your case you're building a cluster of time and values so sorry, this setting won't work.

 

I noticed you have a different direction on the bottom feedback node in your image.  Could this be your problem?

0 Kudos
Message 8 of 25
(3,528 Views)

Jose - You appear to have a lot of zeros in your data, can it be that your ‘Cluster In’ data does not always have valid data for each of the timestamps in your timestamp array?

 

Electromecha – I think you’ll find that the feedback nodes are all going in the same direction, it’s just the position that has reversed the arrow – that’s one reason why I don’t like using them.

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

Basically is how I know how to create arrays that keep growing.

0 Kudos
Message 10 of 25
(3,489 Views)