05-07-2012 03:23 PM
Hello,
I wanted to know why my graphs plotted peaks instead of line graphs. As can be seen in the attached images:
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
Solved! Go to Solution.
05-07-2012 03:30 PM
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.
05-07-2012 03:32 PM
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
05-07-2012 03:32 PM
Jose,
You likely have a different setting on 'Transponse Array' parameter on the plots. Check the following setting....
05-07-2012 03:39 PM
I belive that the wiring is good. Here is the block diagram. The "Array" is an array of Date/Time stamp
05-07-2012 03:42 PM
Electromecha,
I don't see that option when I right click the graph. Anyway, Autosize Plot is selected.
Jose
05-07-2012 03:51 PM
yikes what is with all that feedback nodes in your VI?
05-07-2012 03:52 PM - edited 05-07-2012 03:52 PM
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?
05-07-2012 04:10 PM - edited 05-07-2012 04:11 PM
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.
05-07-2012 09:43 PM
Basically is how I know how to create arrays that keep growing.