LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Avoid wires

Hi friends, i want to know if it is possible to avoid wires in labview, what i mean is to place a label where the wire starts and another label where the wire finishes, like in the pcb's schematic software , this is to be more neat and to avoid the wires going all over the block diagram.

Image as example attached.

Thanks in advance for your time.

0 Kudos
Message 1 of 16
(4,563 Views)

Yes you can, but in general you shouldn't.

In LabVIEW the wire is the variable. Controls set the value. Indicators show the value.

If you are having trouble with wire issues, you are not using the language correctly.

 

steve

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 16
(4,557 Views)

I've used other "semi-graphical" languages that work exactly as you diagram.  Give me Wires any time!  You don't have to "search for" or "guess" where the data are going, whether there is one destination or several.  But if this design seems right to you, please feel free to define a new "wireless" language (I predict it will have no more than 5 users world-wide ...).

 

Bob Schor

0 Kudos
Message 3 of 16
(4,542 Views)

I forgot to add:

Show us some code where this is a problem for you.

We can probably give you some alternatives.

steve

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 4 of 16
(4,537 Views)

Thank you very much all of you for the answers, i just asked this in order to have a more neat diagram, but if it is not a built in LabView feature to separate wires with labels, i think i will leave it as i already organized it.

Image attached to show exactly what i asked to do.

Thanks again for your time.

0 Kudos
Message 5 of 16
(4,529 Views)

You need to learn LabVIEW.  You need to learn to not use Local Variables, but to use Shift Registers.  You need to learn to use For Loops and Case Statements.

 

Have you spent any time with the LabVIEW Tutorial material mentioned on the first page of this Forum?  Have you "paid attention", and tried to use the principles it illustrates?

 

Bob Schor

 

P.S. -- if you had attached the VI (instead of a picture of part of the Block Diagram), we might have been able to show you a better way ...

0 Kudos
Message 6 of 16
(4,524 Views)

Could you give some reasons not to use local variables ? i don't understand why you say that, if they exist i think is to use them, i do know how to use shift registers, but in this case i consider easier to use local variables. thanks for your time.

0 Kudos
Message 7 of 16
(4,515 Views)

Attach the VI (instead of a picture of part of the Block Diagram) so that we can edit it and show you (since you haven't learned the problems involved with overuse of Local Variables, among other things).

 

Bob Schor

0 Kudos
Message 8 of 16
(4,511 Views)

@MaxiBarac wrote:

Could you give some reasons not to use local variables ?


1. Race conditions - you get weird answers because the read and write process can happen in a random order.

2. Forces values to be on the front panel, adding to memory and CPU resources to redraw the control/indicator.

3. Prevents the compiler from being able to make optimizations.

4. Makes the code harder to read.


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
Message 9 of 16
(4,508 Views)

This feels like a Tag Team, where Bob and I take turns beating up on you, but we're just trying to help.

Two things to learn: LabVIEW basics (like data flow) and use of arrays.

This is more what your diagram should look like (minus proper Icons).No Wires.png

 

 

 

 

 

 

 

 

 

 

 

This is based on guessing that what you are doing with the Boolean references makes sense.

 

 

 

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 10 of 16
(4,501 Views)