LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Not enough memory error with dynamic call VI

I am getting a 'not enough memory to complete this operation' error when running 'Dynamic call with report writing.vi', included in the attached zip.

I highlighted execution on a subsequent run and the error occurs when the data arrives at the 'data handler' sub VI from the 'Dynamic call' sub VI.

Anyone have any tips? Thanks!
0 Kudos
Message 1 of 4
(2,971 Views)
Sara,
Could you also include the "Dynamic VI Call" VI? This is probably a crucial VI to reproducing the error.
You can further isolate the error by just wiring the array with the correct data to the "OVLO UVLO data handler.vi" and see if this is the VI that is causing the error.
Is this VI maybe doing any TCP? Here is a KnowledgeBase and a thread that might help in that case:
LabVIEW Error 2 "memory is full" and/or Windows Error "not enough memory to complete this operation"...



My TCP/IP connection return randomly a "Not enough memory to complete this operation

Zvezdana S.
0 Kudos
Message 2 of 4
(2,971 Views)
Zvezdana,

I will attach the VI but I think I just found a way around the problem. "Dynamic VI call" passes an array of clusters which include all indicator values from the called VI (these include numeric and string values). The error occurred when I tried to read numeric values (in 'data handler' - I highlighted execution again) so now I have changed the "data handler" VI to only include cases where the data of interest is a string. Any numeric indicator values I may need, I will just convert to strings within the called VI.

Thank you very much for your response.

Sara B.
0 Kudos
Message 3 of 4
(2,971 Views)
Sara,
You are right, that is what was causing the problem.
You could also use the Type descriptor wired to the Unflaten from string to get the correct OVLO ON indicator. In your case, it would be a numeric, which you can then convert to string in "data handler" VI. Vut converting it to string in the called VI will also do the trick.
Zvezdana
0 Kudos
Message 4 of 4
(2,971 Views)