LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Moving saving to a offline task while using Consumer/Producer Loops

Solved!
Go to solution

I am stumped on how to do a offline save when saving data to an Excel file. I do not want to save this in the Consumer Loop as it will appear that the Front Panel is locked. I've read on here that the best practice is to make a second loop to handle the save routines, but I am not sure how to implement this. Do I use another queue to do this or is there some other method?

0 Kudos
Message 1 of 6
(2,274 Views)

I cant open your code because I'm not using Labview 2012, only the old 2010... 

 

Here's my example

 

prodcons.PNG

0 Kudos
Message 2 of 6
(2,260 Views)

I am already doing a Consumer/Producer Loop and I'd prefer not to put the save routine in the Consumer Loop cause it is lengthy and I do not want to freeze the FP.

0 Kudos
Message 3 of 6
(2,249 Views)

There shouldnt be anything able to freeze your Panel in the Consumer loop, that's how it works.

 

You put slow stuff down, and quick stuff up.

0 Kudos
Message 4 of 6
(2,244 Views)
Solution
Accepted by topic author Eric1977

The consumer loop can also be a producer for a second consumer loop.  Just use a second queue to pass the data from the first consumer loop to the second.

 

(I didn't open up your file because it is just too many .vi's too look at in that zip file.)

0 Kudos
Message 5 of 6
(2,243 Views)

Looks like that will work, Ravens. Thank you.

 

By the way, Go Lions!

0 Kudos
Message 6 of 6
(2,226 Views)