LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

not enough memory to complete the operation-how do i eliminate the error?

HI All,
 
I have posted the questions before in this forum,but as i am not able to cure the problem i am posting it again.
 
I have  a large database oriented application to plot graph.Almost one year back given the application to the user.
 
They were not getting any problem before.But now the user is telling they are getting an error message-"not enough memory to complete the operation".The same application is running in one of our pcs also.But here no problem.
 
Tried  to change the vitual memory setting in the user's pc by setting to system managed size.
But still getting the same error.
 
Why the same application running finely in one pc and resulting some error in another pc?
 
Except that they are getting the error message the application is running properly(ie,except that they are getting the error they are able to plot the graph.)Is there any work around for this?Atleast is there any way to hide the error message?
 
 
 
 
0 Kudos
Message 1 of 7
(5,316 Views)
Hi user_1,

no, you can't hide that error message.

It seems you are dealing with very big data arrays (kind of duplicate posting). Please read the knowledge base article on memory efficient programming!
The "not enough memory" occurs when LabView has to create a data copy and doesn't get the memory needed for. The only (?) way to avoid this is efficient programming!
When you increase the memory available in the PC the error will only occur later!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(5,306 Views)
Hi,
 
Thanks for the reply.
Ya the post is a duplicate post,but not duplicate of the link pointed by u.
 
In the link u given,i asked my doubt and in that case i was not getting any error message.
 
But in the current post i was asking for a way to eliminate the error.
 
How the same application run smoothly in one pc while popping the error in another?
 
When we can tell that we created data copies?I read about the problems with data copies.But i cudnt completely get what is meant by data copy in labview notation.I never use local and global variables as i know it will cerate data copies.Instead i use property nodes.That will also create data copies?If so is there any way to replace property node with something else that wont create data copies?
 
0 Kudos
Message 3 of 7
(5,303 Views)
Hi user_1,

I wrote "kind of..." - the topics of the post are related and very similar...

Don't create data copies: use wires AND functions that don't create copies (like "Replace Array element"). You can show buffer allocations with a menu option (tools->profile->show buffer allocations [LV8+]).

Different PCs:
- different drivers/OS?
- different size of memory?
- different uptime of the PC? (different memory fragmentation? LabView needs continous blocks of memory!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 7
(5,299 Views)

Hi

Thanks again.

I was trying to use wires but in some situations if we use wires all the time ,the block diagram was getting messy.

Thsts why i was forced to use property nodes..I thought its just like a variable in text based languages.

 

 

0 Kudos
Message 5 of 7
(5,296 Views)
Hi user_1,

LabView is NOT a text based language - you cannot use programming schemes from text based languages in LabView!!!
In LabView the wire is keeping the value and replaces variables from text languages!

What's your worst problem: messy block diagrams or "out of memory"-errors???
Btw. You can clean up block diagrams by using subvis and bundle wires to clusters (though it gets harder to avoid data copies...).

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 7
(5,292 Views)
Hi user_1,

some informations can be found here!

Nobody is forcing you to use property nodes (or locals)! Smiley Very Happy
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 7
(5,266 Views)