Eugen Graf Posted June 11, 2008 Report Share Posted June 11, 2008 Hello LAVAs, I have a big table 25 Columns and about 800000 Raws and user can select which column(s) he want to plot. My plot VI is always the same, I configured it as reentrant and start it using Invoke Node. I did Dispose Ref as True and hope if one clone will be closed, than used memory will be deallokated. Thank you Quote Link to comment
LAVA 1.0 Content Posted June 11, 2008 Report Share Posted June 11, 2008 QUOTE (Eugen Graf @ Jun 10 2008, 11:06 PM) Hello LAVAs,I have a big table 25 Columns and about 800000 Raws and user can select which column(s) he want to plot. My plot VI is always the same, I configured it as reentrant and start it using Invoke Node. I did Dispose Ref as True and hope if one clone will be closed, than used memory will be deallokated. Thank you Hi, I don't really know how graph memory is handled but anway my best advice is : do not put 800k values, just put about 5-10 values per pixel (-> check the graph area size). I've saved a lot of memory with this technique. Hope this can help. Quote Link to comment
Eugen Graf Posted June 11, 2008 Author Report Share Posted June 11, 2008 QUOTE (Antoine @ Jun 10 2008, 11:26 PM) Hi,I don't really know how graph memory is handled but anway my best advice is : do not put 800k values, just put about 5-10 values per pixel (-> check the graph area size). I've saved a lot of memory with this technique. Hope this can help. Ok, but the graph will be zoomed. Almost each point is needed. Not the whole plot, but I can`t decide which parts are not needed, it`s unknown and variable. Quote Link to comment
Justin Goeres Posted June 12, 2008 Report Share Posted June 12, 2008 QUOTE (Eugen Graf @ Jun 10 2008, 02:31 PM) Ok, but the graph will be zoomed. Almost each point is needed. Not the whole plot, but I can`t decide which parts are not needed, it`s unknown and variable. If you've got that much data I would recommend calculating the portion of data that needs to be shown at a given zoom level and extracting just that portion from storage (similar to what Antoine suggested), then displaying that on the graph. I'm not sure off-hand if you can catch all the relevant mouse events for zooming/scrolling/etc. from the graph display, but if you can catch all the events you need, then you can trigger a refresh of the graph as necessary. Quote Link to comment
crelf Posted June 12, 2008 Report Share Posted June 12, 2008 QUOTE (Justin Goeres @ Jun 10 2008, 07:06 PM) If you've got that much data I would recommend calculating the portion of data that needs to be shown at a given zoom level and extracting just that portion from storage (similar to what Antoine suggested), then displaying that on the graph. Sounds like a job for an http://wiki.lavag.org/XControl' rel='nofollow' target="_blank">xcontrol. (yes, there's a flood of posts from me in the last few minutes - I just got off a plane after an 11 hour trip and I need my LAVA fix.) Quote Link to comment
LAVA 1.0 Content Posted June 12, 2008 Report Share Posted June 12, 2008 QUOTE (crelf @ Jun 11 2008, 02:38 AM) (yes, there's a flood of posts from me in the last few minutes - I just got off a plane after an 11 hour trip and I need my LAVA fix.) LOL QUOTE (crelf @ Jun 11 2008, 02:38 AM) Sounds like a job for an xcontrol. It really does, I've been working on a set of VIs to efficiently -well as efficiently as I could- manage large data sets to be displayed on a graph. I'll share what I came up with. I guess the amount of work to wrap this into an xcontrol is not huge.. I was concidering putting a OpenG package request on this, and share my code as a starting point. Has anyone been working on this too ? Quote Link to comment
LAVA 1.0 Content Posted June 12, 2008 Report Share Posted June 12, 2008 QUOTE (Antoine @ Jun 11 2008, 02:21 AM) LOLIt really does, I've been working on a set of VIs to efficiently -well as efficiently as I could- manage large data sets to be displayed on a graph. I'll share what I came up with. I guess the amount of work to wrap this into an xcontrol is not huge.. I was concidering putting a OpenG package request on this, and share my code as a starting point. Has anyone been working on this too ? A high capacity chart/graph and tables are on my list of XControls to write. Dr. Gray's article on http://zone.ni.com/devzone/cda/tut/p/id/3625' target="_blank">Managing Large Data Sets would be incorporated in to same. Ben Quote Link to comment
LAVA 1.0 Content Posted June 12, 2008 Report Share Posted June 12, 2008 QUOTE (neB @ Jun 11 2008, 03:02 PM) A high capacity chart/graph and tables are on my list of XControls to write. With the aim of sharing it on LAVA's Code Repository ? QUOTE (neB @ Jun 11 2008, 03:02 PM) Dr. Gray's article on Managing Large Data Sets would be incorporated in to same. Thanks for the link to this article. Interesting code attached !! I haven't been that far Quote Link to comment
crelf Posted June 12, 2008 Report Share Posted June 12, 2008 QUOTE (Antoine @ Jun 11 2008, 02:21 AM) I was concidering putting a OpenG package request on this, and share my code as a starting point. I think that's an excellent idea. Quote Link to comment
LAVA 1.0 Content Posted June 12, 2008 Report Share Posted June 12, 2008 QUOTE (Antoine @ Jun 11 2008, 09:18 AM) With the aim of sharing it on LAVA's Code Repository ? ... Don't hold your breath. Those kind of things only get developed in my spare time and between re-modeling of my rental property, plus a modular home my son is purchasing, along with car maitenance, I will not be dropping any nodes for that project until well after the snow starts to fly. Ben Quote Link to comment
LAVA 1.0 Content Posted June 12, 2008 Report Share Posted June 12, 2008 QUOTE (crelf @ Jun 11 2008, 03:30 PM) I think that's an excellent idea. Some cleaning over the week-end and off we go ! QUOTE (neB) Don't hold your breath. Those kind of things only get developed in my spare time and between re-modeling of my rental property, plus a modular home my son is purchasing, along with car maitenance, I will not be dropping any nodes for that project until well after the snow starts to fly. Ohh, ok... Then I hope you'll have time to participate in the improvement/developpement when it starts Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.