LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory full error while communicating with MongoDB database

I am using LabVIEW 2015 and MongoDB version 4.0 as database.I am facing memory full error when continuously logging datas in to MongoDB. I have closed all possible references. Still the same issue is there. Can someone help me to sort out. I would like to know is there any known issues while communicating LabVIEW with mongodb database. 

 

Regards,

Nandhini

 

0 Kudos
Message 1 of 5
(1,791 Views)

Are you sure it's the DB Communication and not the measured data that builds up and fills the memory?

Can you post VI?

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 5
(1,784 Views)

"Data" is already plural (it's the plural of "datum").  No such thing as "datas".  I feel this is important, and not just a nitpick, because you are a professional; this is a word that a person with a job like yours should be able to use correctly to maintain credibility with your peers.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 5
(1,766 Views)

Yes I am sure, because I have tested  running application by disabling logging part, it run without any memory peak. The same code we tested with log in to excel it also worked well without memory peak. 

 

I am attaching MongoDB connection and write VI with necessary dll files. Code is developed in LabVIEW 2015.

 

Regards,

Nandhini

0 Kudos
Message 4 of 5
(1,712 Views)

The only thing i react to is that you Close the references in the wrong order in the 2nd part.

I've had "Memory full error" when it wasn't. It was a VI giving error 2 (maybe your Mongo generates the error?) and LV interprets it as memory full.

https://docs.mongodb.com/manual/reference/exit-codes/

Code 2 - Specified options are in error.

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 5
(1,699 Views)