11-01-2006 02:02 PM
@Kevin Price wrote:
I like your trick of using a hidden chart control as a lossy circular buffer. Have you done any performance benchmarking on this technique? I keep meaning to, but perhaps you've already gone down that road...?
I can't see the code, but I suspect that if using the History Data[] property, then LV would need to to a switch to the UI thread to get the data each time.
I wrote an LV2 implementation once which reuses the buffer, so it should be efficient.
11-01-2006 06:36 PM - edited 11-01-2006 06:36 PM
Message Edited by rpursley8 on 11-01-2006 07:39 PM
11-02-2006 02:47 AM
11-02-2006 05:08 AM
11-02-2006 09:24 AM
11-02-2006 09:58 AM
If I understand correctly, then the VI I linked to in my last post should already do something similar (it's reentrant, so it needs to be modified and have a few actions before it can be used like that).
@rpursley8 wrote:
Probably the optimum solution is the take GerdW's loop and turn it into a LV2 global and then use the two loop approach. In one loop you would write to this global and in the other you would be reading from it. I will post one like this later if someone doesn't beat me to it.
11-02-2006 10:00 AM - edited 11-02-2006 10:00 AM
Message Edited by rpursley8 on 11-02-2006 11:08 AM
11-02-2006 10:20 AM
@rpursley8 wrote:
If its OK with you tst, I would like to steal your buffer icon from your example, though.![]()
Since I borrowed it myself (see if you can figure out where from), I don't think I have any real right to tell you otherwise. ![]()
11-03-2006 10:39 AM
Getting back to the "hidden chart control as lossy circular buffer" thing...
When I get around to it (unless someone else tries this out first, hint, hint), I'd still kinda like to do some benchmarking where the data is extracted using a "Read"-type local variable copy of the chart instead of with a "History" property node. That would avoid the context switch into the UI thread.
-Kevin P.
11-03-2006 12:22 PM - edited 11-03-2006 12:22 PM
Message Edited by rpursley8 on 11-03-2006 01:23 PM