LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing Cluster data to SQLite DB

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.

0 Kudos
Message 1 of 3
(1,290 Views)

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.

Message 2 of 3
(1,255 Views)

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.

 

 

0 Kudos
Message 3 of 3
(1,231 Views)