12-08-2005 01:18 AM
12-08-2005 06:59 AM
Have you profiled your memory useage, It is possibly a system resource problem and not necessarly a labview issue. If you overuse memory (lots of applications or large files opened) you will exceed the Physical RAM limit and be forced into virtual memory mode (using the hard disk as a swap for RAM) this will show a very noticable slowdown of any system. If it is a RAM issus adding memory is an easy and inexpensive fix (less than $100). I would check this first,
Paul
12-08-2005 07:45 AM
Hello again,
i´ve tested this having Labview open and also Taskman viewing Memory usage. There is an increase of ~100 KByte.
Pasting the Data to Notpad works very quick.
Best Regards
Hacky
12-12-2005 04:26 AM
12-13-2005 06:18 PM
While I understand that LabVIEW implements its own clipboard (in fact it creates a hidden window internally to act as its clipboard) and that this has quite some advantages as far as the multiplatform integration is concerned, it is not true that you couldn't actually use the Widnows clipboard for LabVIEW objects. The Windows clipboard allows to register private clipboard formats for use with private application data objects. This would however pose the challange of what to do when trying to import such a LabVIEW object placed into the clipboard by a different LabVIEW version.
@Jochen wrote:
Hacky,
the issue here is probably the fact that LabVIEW has its own clipboard and is not using the Windows clipboard directly. The standard Windows clipboard couldn't be used to copy e. g. parts of LabVIEW diagrams from one vi to another one as it would turn the LabVIEW code into bitmaps.
To be able to cpoy data from Windows to LabVIEW the two clipboards need to be synchronised and this might take some time - especially when there is not enough phyiscal memory available and Windows starts to use the swapfile on the harddrive.
You said that you don't see a significant increase in the memory usage but this is not necessarily very meaningful. You should also watch the swap file size and the harddrive activity.
Best regards,
Jochen Klier
National Instruments Germany
12-14-2005 01:12 AM
Hello everbody,
i checked the situtation as jochen told and found that swap memory increases first when i copy my text to clipboard and increases again when i only
activate a LV Vi. . So i assume that LV creates a local copy of the clipboard when LV gets the focus. Ofcourse this may take som time but i am not sure
if this is alway nessecary. I belive in most cases not.
So my question is, does LV need do copy the clipboard every time it gets the focus or can one handle this more elegant by copying the clipboard only
when a paste funtionality is called.
Best regards
Hacky
12-14-2005 06:51 AM
12-14-2005 07:24 AM
12-15-2005 07:07 PM
Hi Jochen,
I appreciate you stepping forward and being upfront with us about what is happening here. Knowing wha the issue is, is half the battle.
What is an effective technique for minimizing or clearing the clipboard so I could code around this issue?
Ben
12-16-2005 02:02 AM