LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

one or two separate in-place element

I'll say that DVRs are generally not a good way to pass data between loops, especially if you have multiple loops trying to write to the same data.  I would be more inclined to use a Queue or Notifier to pass your raw data to this loop and then you can process it as needed.  The processed data could be sent on similarly usings Queue(s) and/or Notifier(s), depending on the number of loops and what those other loops are doing.


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 11 of 13
(322 Views)

@crossrulz wrote:

I'll say that DVRs are generally not a good way to pass data between loops, especially if you have multiple loops trying to write to the same data. 


 

The nice thing about DVRs is that they don't "pass data", but all point to the same data (semantics... 😄 ). I agree they are rarely needed, though. I think I only used them once where I had to share a huge 3D arrays, avoiding some data copies.

0 Kudos
Message 12 of 13
(320 Views)

@crossrulz wrote:

I'll say that DVRs are generally not a good way to pass data between loops, especially if you have multiple loops trying to write to the same data.  I would be more inclined to use a Queue or Notifier to pass your raw data to this loop and then you can process it as needed.  The processed data could be sent on similarly usings Queue(s) and/or Notifier(s), depending on the number of loops and what those other loops are doing.


This might even be a good use case for a Channel Wire object.  Depending on the degree of access desired by multiple loops.  

 

However,  a DVR to point at 24 clusters of data smells like a God Object from here!  I would seriously rethink what subvis are doing to what data elements.  And refactor while there is still time.


"Should be" isn't "Is" -Jay
0 Kudos
Message 13 of 13
(304 Views)