08-06-2020 08:14 AM
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
08-06-2020 08:32 AM
Are you sure it's the DB Communication and not the measured data that builds up and fills the memory?
Can you post VI?
08-06-2020 09:05 AM
"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.
08-07-2020 02:51 AM
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
08-07-2020 03:33 AM
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.