LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to replace extra local variables

Solved!
Go to solution
It seems I got way too many local variables in my VI.  Is there any way I can replace them with a data server?
0 Kudos
Message 1 of 29
(4,957 Views)

hellolv wrote:

Is there any way I can replace them with a data server?


What do you mean by this? Smiley Indifferent I dont know such anything in LV. All I know is VI Server.

 

You can use SRs to reduce the no. of locals (or even eliminate it). Smiley Wink 

 

Or, post your code & we may try to help you out in a better way. Smiley Happy

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 2 of 29
(4,949 Views)
Thansk for the response.  What are SR's?
0 Kudos
Message 3 of 29
(4,941 Views)

It's a shift register.

 

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 29
(4,937 Views)
I need to pass value across different while loops.  Can shift registers accomplish that?
0 Kudos
Message 5 of 29
(4,927 Views)

hellolv wrote: 

What are SR's?


Not to undermine your knowledge or make you fun of, just curious...

 

Do you not really know what SR means colloquially after some years of LV programming... ?!

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 6 of 29
(4,942 Views)

This can be achieved by Queues.

 

What is your overall architecture?

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 7 of 29
(4,920 Views)

Sometimes, when writing applications very fast (such as in the lab hunkered over a machine in 95% humidity) I might pepper the code with local variables like you have done, but 95% of them will get replaced with Shift Registers, Notifiers, or Queues when I get 15 minutes to clean up the code.

 

 

Read up on Producer / Consumer archetecture.

Message Edited by Broken Arrow on 08-18-2009 07:21 AM
Richard






0 Kudos
Message 8 of 29
(4,912 Views)
If the while loop is a little oversized, any other suggestions on how I can pass data?
0 Kudos
Message 9 of 29
(4,879 Views)
Got about two dozens of while loops running in parallel and bunch of data needs to be flowing back and forth between them.
0 Kudos
Message 10 of 29
(4,877 Views)