LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is "remote wiring"

Hello,
 
    I have inherited Labview code where the original author has controls in the block diagram that are not connected. However the comments below the controls mentioned "remote wiring" to local variables. Does anyone know what is meant by "remote wiring"?  Thanks for any answers to this post.
Regards,


Kaspar
0 Kudos
Message 1 of 5
(2,992 Views)
I think that your predicessor used locals to handle all of data transfering  instead of using wires and dataflow.  This is not a good way to do things and I would recommend that you find the "main" use of each of these and replace the local there with the control.

Hope that this helps,
Bob Young

0 Kudos
Message 2 of 5
(2,978 Views)
I think the original programmer made up that term. If the programmer wired to local variables instead of the controls terminals, then that would be an example of pretty bad programming style. You can right click on any terminal and select Find>Local Variables to see where they are used. At the very least, one of the local variables should be replaced with the terminal.

Message Edited by Dennis Knutson on 06-28-2006 08:04 AM

0 Kudos
Message 3 of 5
(2,976 Views)

Hello,

   Thanks for the response. I can sort of understand why the original author used local variables. If the controls on the front panel were wired up to all of the inputs, the block diagram would be a nightmare with wires going all of over the place. My next step is to figure out how the controls, that do not have wires connected to them are attached to the local variables that are used for the inputs to case statements, etc. 

 

Regards,


Kaspar
0 Kudos
Message 4 of 5
(2,959 Views)
"Spaghetti" wiring is another sure sign of poor progamming style. While local variables are often required for certain operations, a diagram that uses a lot of them can usually be cleaned up significantly to remove most if not all. It is often long and tedious but the results are worth it in the long run. If nothing else, whoever succeeds you who won't be 'cursing' the previous author for leaving a program that is difficult to maintain and update
0 Kudos
Message 5 of 5
(2,947 Views)