07-20-2009 09:22 AM
I am using a waveform chart to plot current consumption from a power supply. This data is also included in a table that is exported as an excel file. There are only certain regions of the graph that contain important data after each trial. Is there a way that I can set vertical bounds after a trial consequently selecting only of certain range of obtained data in my chart?
In other words, I basically need to highlight a region of the graph and have the corresponding data points in the table selected so that I only analyze those.
Attached is my current project.
07-20-2009 09:41 AM
You can manually change the X scale of the graph to just show the data of interest:
.. or you could use two vertical cursors to hightlight your area of interest.
07-20-2009 09:46 AM
07-20-2009 09:56 AM
Right click on the graph and create a property node. I created two controls to set the min/max, but it might be better to do it programmatically.
07-20-2009 10:23 AM
07-20-2009 01:56 PM
07-21-2009 07:24 AM
Charts accept only scalar values. Graphs accept arrays, waveforms, etc.
One more thing: you also need to set the XScale.ScaleFit = 0 to turn off autoscale.
Post your updated code to the forum so we can take a look at it.
07-23-2009 08:25 AM
07-24-2009 07:48 AM
All you need to do is right-click on the property node and select "change all to write". Then wire up the correct values. I don't know what your program is doing, so I don't know the logic to decide what the min/max should be.
07-24-2009 03:01 PM