06-15-2009 12:09 PM
I have a front panel with several waveform charts on it. The charts correspond to the x, y, and z axes of accelerometer data. I was hoping to use a slider to scroll along the x-axis of all the charts concurrently. Can this be done with waveform charts? If not, is there another way to do this (aside from plotting all the data on the same chart and using the default x scrollbar)?
06-15-2009 01:00 PM - edited 06-15-2009 01:00 PM
06-15-2009 01:11 PM
yeah I Have an example of this it may help:
06-15-2009 01:32 PM
Instead of constantly reading and writing the property in a while loop, use an event structure.
06-15-2009 01:34 PM
Another option is to use ome waveform chart and stack the charts.
06-15-2009 02:04 PM
Dennis
I tried your suggestion and I don't think the property "NewRange" in the scale range change works this way
Try the attached vi and flip the property in Event boolean to switch between the two different methods
06-15-2009 02:15 PM
06-15-2009 02:41 PM
Dennis
The problem seems to happen when I set the current time using the offset property
can you try this vi and let me know what I am doing wrong?
06-16-2009 10:11 AM
Hey James,
Thanks to Dennis for the nice example on scrolling multiple charts. There seems to be some sort of discrepancy between the actual range for a particular graph and the range returned by the event structure when attempting to control the range of the other two charts. What seems to be happening is the initial range shift seems to be lost when you are in the event structure. This occurs regardless of how you shift the initial range (using time or a constant). However, there is a pretty easy work around for this disconnection, instead of using the event structure to return the range, use another property node for the chart you are adjusting. Take a look at the attached example for a little more clarification.
06-16-2009 10:36 AM
Dennis,
Do you know if there is any drawback to doing them all in the same event, like the attached vi?