LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Queues with Timed Structures in different cores

I am converting a program I wrote that worked great for over a year in non-compiled mode. I switched over to LV15 and changed how things were done.  Instead of running separate LV vi's and passing the reference to a shared queue to each vi, I am trying to use Timed Structures. My intent is to be able to compile the app ultimately, but that is not being done yet. 

 

Is it possible to share a queue between timed structures?  Even when I put them in the same core, it seems to have problems.  In one timed structure, I poll the queue status to find out how many elements are in the queue and it gives an error.  The other structures have not even written to the queue yet or executed a queue vi yet.

 

 

0 Kudos
Message 1 of 5
(2,562 Views)

Tell us more about "the problem" to help us help you.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 5
(2,548 Views)

Unless you are in an RT system, the Timed Loops are a waste.  They add overhead that you do not need and add very little if anything on a Windows System.  If your code was working before, why change it?  And if you are getting an error, it is likely you have yet to obtain the queue before passing it to your subVIs.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 5
(2,544 Views)

I am working on cutting the program down to the bare minimum that still gives the problem.  I will post up shortly.

0 Kudos
Message 4 of 5
(2,543 Views)

I assume you are still working on the same application you were discussing previously (here). Besides the fact that Timed Structures are probably not going to help you (as previously suggested) there is no problem with using a queue reference in multiple timed structures. It will potentially interfere with their execution (since they all have to wait on the same reference) along with any cache misses etc. between cores but you aren't designing a "real-time" application.

 

I suspect a race condition but will wait till you post the example before any more speculation.

0 Kudos
Message 5 of 5
(2,530 Views)