The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Passing data within an application

SercoSteveB
Active Participant

Wires, Feedback Nodes, Shift registers and Global Variables are all ways to pass data within an application. 

In terms of VI Execution Speed, please order them from 'most' to 'least' efficient.

a) Wires, Feedback Node, Global Variable, Shift Register, .

b) Wires, Shift Register, Feedback Node, Global Variable.

c) Wires, Global Variable, Feedback Node, Shift Register.

d) Wires, Feedback Node, Shift Register, Global Variable.

Comments
crossrulz
Knight of NI

I would go with B.

There were a few versions where the FN was a little slower than the SR, but I'm pretty sure NI fixed that issue.


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
MrStevenUND
Member

For sure B or D.  Global is the worst. 

I'm thinking B as well, though I have no real good reason.

VSC
Member
Member

though i tried it out first i myself as well have no explanation. I have- to agree to B.

sumapatil
Member

Ans is B

  But i don't have good reason

RAMESHB
Member

Answer is B

              because Wires, Shift Register, Feedback Node, Global Variable here Global Variable is used to call another vi i think it is not use passing the data

MrStevenUND
Member

How do "Functional Globals" fit in to the mix?  I've read FG's are better about memory usage, but what about speed?

My guess is Functional Globals would take longer than Globals.  The information of a FG is stored in the shift register of a subvi, where as the Global is in itself a VI. 

crossrulz
Knight of NI

I would agree that FGVs are also slower.  You have case structures, subVI overhead, and reading/writing to the shift register or feedback node.  Though, I have also been told that reading a global variable is very similar in speed to a constant.  NI has done a lot to improve performance in the last couple of years.


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
SercoSteveB
Active Participant

Answer: B D.  Nice one. crossrulz, MrStevenUND, VSC, sumapatil & RAMESHB. 

Check out Passing Data within an Application of VI Execution Speed

crossrulz
Knight of NI

According to that document, the answer is D.


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
SercoSteveB
Active Participant

Good spot.

adiveppa
Member

Ans is D

mini09
Active Participant

Nice question and discussion known an unknown process in LabVIEW... thanks Steve... Agreeed with the explanation and answer..

ashwinilele
Member

  Ans is B.

Then I read all discussion then I changed my ans to D