06-07-2010 03:04 PM
Hi,
I have a VI where periodically I need to prevent the chart from continually scrolling. The rate of scrolling is excessively high and I can't seem to either stop it or at least slow it. Currently the chart input is wired to a case structure which selects between acquiring data or using a default value. Using an event structure is not feasible as the section is embedded in a while loop and part of a larger application.
Thanks
Solved! Go to Solution.
06-08-2010 02:50 AM
From reading your post i have the impression that you are continuously writing single values to a waveform chart. If you do not want to update the chart continuously, change your code to "pause" writing to the chart on those situations. This will result in a "static" image of the chart until you resume writing to it.
hope this helps,
Norbert
PS: If you post your code, we can possibly give some further, better suggestions
06-08-2010 08:43 AM
How would I implement a "pause"? I'd like to stop updating the graph continuously, but still require the remaining parts of the loop to continue.
Thanks
06-08-2010 08:49 AM
You could put the chart terminal inside a case structure and it will only update if the case is true.
(Of course the time axis would be quite meaningless in this case).
06-08-2010 09:01 AM
I agree with Norbert B & altenbach
That's how is done briefly,
12-03-2012 06:16 PM
Ugh, thank you SO much. Took forever to find this but it's EXACTLY what I was looking for. You saved the day!
11-19-2013 02:45 PM
11-20-2013 04:15 PM
This is a very interesting case, as I can definitely see where the behavior would be useful. While I haven't been able to create the functionality, I think I may have something that can help us get started figuring out the best way to do this.
I started looking at events and event structures around a waveform chart, and I see that there's an event thrown when the scrollbar is moved of a chart. I'm thinking that we may be somehow able to write the data into a temporary location while this event is true, and then we can capture a mouse up event on the pane to trigger when to write the data back to the chart.
I've attached a simple skeleton for this code which hides and then displays the plot legend when the scroll bar is moved. Obviously this is not the correct behavior, but if we can somehow create a temporary array and then alter this, I think we should be able to achieve functionality!
11-21-2013 01:41 PM
Hi Nathan,
Could you upload a 2012 version of that VI so I can have a look?
Thanks!
11-21-2013 01:44 PM