LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data between stacked sequences

I need to transfer a large array from one sequence to next sequence in stacked sequence structure. I made a property  node in next sequence, it works. But I did not feel it is the best way to do it. Please advice if any better way to do this job. Thanks

0 Kudos
Message 1 of 4
(4,235 Views)

Using a stacked sequence structure is never a good way to program anything and using a property node just makes it worse. Use a flat sequence structure if you must use any type of sequence structure and just wire from one frame to another. Better would be to use a state machine and pass the value with a shift register.

0 Kudos
Message 2 of 4
(4,228 Views)

If you really feel you must use a stacked sequence (and under almost all instances you shouldn't) a property node is about the worst way to transfer data, large or small. It causes the code to execute in the User Interface thread, usually slowing the execution drastically, and sets you up for possible race conditions. Why aren't you (if you really feel you must use a sequence structure) just wiring the data wire to the frame, where you have right clicked and created a "sequence local" it is created in and then wiring it in the one it needs to be? To understand why a stacked sequence isn't a great idea do a search on sequence structures, or state machines ( a better construct).

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 3 of 4
(4,221 Views)

You already received the correct answers above... 😄

 

Still, your question is not clear at all. Please try to describe the problem in more detail, maybe attach a simple VI that shows the main points.

 


@detech wrote:

I need to transfer a large array from one sequence to next sequence in stacked sequence structure. I made a property  node in next sequence, it works.


 

Are you trying to transfer data between "frames" of the same sequence structure or between two different sequence structures that are data dependent?

 

As has been mentioned, to retain data between frames of the same sequence, use sequence locals.

 

Anyway, I am absolutely sure there is a better way to do all this. If you show us your code, we can point you in the right direction. 😄

0 Kudos
Message 4 of 4
(4,210 Views)