LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

not enough memory to complete this operation.

Solved!
Go to solution

Hello guys,

 

Can Someone help me please to simplfy this program... I recieved error and takes so much time to perform such program. i use highlight execution but i cant find any error.. 

 

 

Image96 Dec. 25 08.46.jpg

VI with error.png



Thank you & Best regards
syrpimp

=======================================================
“You must continue to gain expertise, but avoid thinking like an expert." -Denis Waitley
0 Kudos
Message 1 of 5
(5,921 Views)

No one will be able to help because you didn't attach your VI and the imaage you attached is too small to see.

0 Kudos
Message 2 of 5
(5,916 Views)

 

 

 

VI with error.png 

 

 

 

 



Thank you & Best regards
syrpimp

=======================================================
“You must continue to gain expertise, but avoid thinking like an expert." -Denis Waitley
0 Kudos
Message 3 of 5
(5,902 Views)
Solution
Accepted by topic author syrpimp

Ohhh.. this is ok Now, I figure Out the Error..  

 

Thank you guys...

 

Happy holidays everyone

 

 



Thank you & Best regards
syrpimp

=======================================================
“You must continue to gain expertise, but avoid thinking like an expert." -Denis Waitley
0 Kudos
Message 4 of 5
(5,874 Views)
Solution
Accepted by topic author syrpimp

Well, you are building several arrays in autoindexing output tunnels of a while loop that never stops. You are guaranteed to run out of memory eventually. 😄

 

While the fix might be easy, I think your entire code is overly complicated and could be simplified dramatically. Can you tell us what it is supposed to do and what output you are expecting?

 

For example your entire inner FOR loop could be replaced by a simple typecast operation of the array. Same difference. (You could even use "byte array to string").

 

Instead of the constant resizing of the array in the outer shift register, you could just leave it alone and use arrray subsets instead. etc. In-place operations are typically more efficient.

 

I also assume that the initial byte array is more interesting in the real case. Currently, your code does not depend on any external input and the results could be folded into a constant at compile time, eliminating all code entirely.

Message 5 of 5
(5,841 Views)