LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

trying to get data out of a sequence structure

i am building an array in each of my sequence structures.when i view the array inside the structure,it is perfectly fine.but when try to wire it outside,it doesnt show up at all.Previously,i had local sequences which worked fine.but now,i need to be able to send some more data to the same file (from another place)during run time.so i want the arrays in each sequence structure to come ouit of the whole structure.how do I do this?any suggestions are welcome.
0 Kudos
Message 1 of 5
(2,967 Views)
Can you post your VI?

Mark
0 Kudos
Message 2 of 5
(2,967 Views)
Basically, a sequence is a node. A node does not output data until it has finished executing. Your data will not come out of the sequence structure until the entire sequence is complete. If you need to get data out while the sequence is still running, then you need to use a local or global variable or a queue or notification. Outside the sequence, you watch for the data to show up (or change) and then access the data when you get it.

I hope that that isn't too confusing.

Rob
0 Kudos
Message 3 of 5
(2,967 Views)
Are you sure that you need to use the sequence structure? Often times SubVIs will do the same thing and modularize your code which greatly eases debugging.
(I am hesitant to suggest it) if you have few frames, you can create several single frames in a row. Data from one frame is passed to the next with a wire (every frame needs to have a connecting wire so that LV knows when to execute the code). This way you can tap data from any frame as you like.

Jeremy Braden
National Instruments
0 Kudos
Message 4 of 5
(2,967 Views)
Sujani,

Well I think if you use a local variable or a global varible it will solve your problem. You can declare an indicator and then hook its local varibale to the array in the sequence. THis wat you can access the data you need outside the sequence structure also while the program is running.

Hope this helps.
Good Luck.
Parikshit.
0 Kudos
Message 5 of 5
(2,967 Views)