09-07-2021 07:40 PM
Hello,
I have been trying to develop a VI using clusters where I wanted to create a flexible VI and wanted to save my data into DB.
Until writing data everything works well then SQLite throws an error and I couldn't figure out why. Any suggestions?
Thanks,
O.K.
09-08-2021 01:52 AM - edited 09-08-2021 01:57 AM
It would really help you if you did some code management....
You got wires going all over the place and it took me while to even locate where you generate the data...
I believe your problem is that you first write the (nonexistant) data and then actually collect it. You have a case structure, which only executes once at the program start and then never again (if your Boolean is true).
Since you are using SQLite you should check this thread out, so you won't get any surprises later on.
EDIT:
You also have a "Save Data" queue, which populates in your "Data output" loop and never depopulates... and then you have a check queue status function in a loop which never ends, because you don't depopulate your queue.
09-08-2021 10:28 AM - edited 09-08-2021 10:33 AM
I was not proud of the wiring as well. I had to implement all the subVI's into one.
I looked at the thread I understand the concept.
Let me create a while loop and see how it would handle the data collection. I will also correct the queue function properly.
Thank you for the comments.