LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Wire Labels wanted, like scheamtic net names
BrokenArrow
post Oct 27 2007, 05:11 PM
Post #1


Very Active
***

Member
Posts: 223
Joined: 30-July 05
From: Tampa Bay
Member No.: 2655
Using LabVIEW Since:2001
LV:8.5 ,8.2.1 ,7.1
United States Sweden us_florida My Gallery


Schematic capture programs have had wire labels for decades. Seems like an obvious thing for LV. I'd prefer color-coded like my example here. I have a VI full of these color-coded labels, and I use it to plop down labels, but this should be an easy thing to implement with a Right-Click, Show Wire Name.
I've found these labels particularly useful in state machines when the data is "just passin' through", or of course on long wires.

Richard
Attached image(s)
Attached Image
 


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Oct 27 2007, 05:11 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
Ton
post Oct 27 2007, 05:19 PM
Post #2


CCT It
*****

Premium Member
Posts: 1337
Joined: 13-June 05
From: Woerden, Netherlands
Member No.: 2399
Using LabVIEW Since:2001
LV:8.5.1 ,6.1 ,8.2.1
Netherlands hol_utrecht Nothing Selected My Blog My Gallery


QUOTE (BrokenArrow @ Oct 27 2007, 07:11 PM) *
Schematic capture programs have had wire labels for decades. Seems like an obvious thing for LV. I'd prefer color-coded like my example here. I have a VI full of these color-coded labels, and I use it to plop down labels, but this should be an easy thing to implement with a Right-Click, Show Wire Name.
I've found these labels particularly useful in state machines when the data is "just passin' through", or of course on long wires.

Richard

Not to nag you, but you know you can create a description for a wire, and see that in the Help window?

But your idea sounds good, and it shouldn't be too hard to code it.

Ton

--------------------
Certified LabVIEW Developer
Shouldn't you be programming a Code Repository solution?


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Yair
post Oct 27 2007, 06:20 PM
Post #3


Extwemely Active
*****

Premium Member
Posts: 1634
Joined: 23-January 05
From: Here
Member No.: 1431
Using LabVIEW Since:2003
LV:8.6 ,7.0 ,.
Israel Nothing Selected Nothing Selected


A few additional relevant options for the present:
  1. Use a cluster for your state machine SR. This allows you to pass multiple values on a single wire and makes it easier if you need to add new states. Handling the value is simply a matter of unbundling and bundling by name.
  2. Use the label available in the system controls palette. Drop one on your FP and then drag it to the BD. It has the advantage of having its background adapt to whatever is under it, so you can place it on the wire itself and it looks nice.
  3. Create some merge VIs with the relevant labels. This will probably speed up your process somewhat.

--------------------
More than meets the eye...


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
BrokenArrow
post Oct 27 2007, 06:29 PM
Post #4


Very Active
***

Member
Posts: 223
Joined: 30-July 05
From: Tampa Bay
Member No.: 2655
Using LabVIEW Since:2001
LV:8.5 ,8.2.1 ,7.1
United States Sweden us_florida My Gallery


QUOTE (tcplomp @ Oct 27 2007, 01:19 PM) *
Not to nag you, but you know you can create a description for a wire, and see that in the Help window?......Ton
Right Ton, but it ain't the same. One, because you have to "hover over" the wire to see it. Plus, it doesn't have the intelligence to know that the entire wire node is the same name. For example, you can name pieces of the same wire (i.e data) different things, within different cases/sequences/loops. For that one reason, I've found that "describing" a wire is next to useless. My habit of using free labels is also problematic, because the labels aren't attached to the wires, and can get moved or lost. I spent most of the 90's doing schematic capture and PCB design, and got used to having wire labels (net labels) showing wherever I wanted them. Net Ports were also nice, but in LV, those are Local Variables wink.gif nono.gif Richard
QUOTE (Yen @ Oct 27 2007, 02:20 PM) *
A few additional relevant options for the present:
  1. Use a cluster for your state machine SR. This allows you to pass multiple values on a single wire and makes it easier if you need to add new states. Handling the value is simply a matter of unbundling and bundling by name.
  2. Use the label available in the system controls palette. Drop one on your FP and then drag it to the BD. It has the advantage of having its background adapt to whatever is under it, so you can place it on the wire itself and it looks nice.
  3. Create some merge VIs with the relevant labels. This will probably speed up your process somewhat.
1. I beleive that if you have flat data, it should stay flat.
2. Neat, but as I said in my last entry, this type of label could "get lost" couldn't it? I'll try it.
3. Good idea. I've actually left my "WireLabels.vi", where I go to copy and paste labels, in the digram by accident!
Richard

p.s. Yen, I never knew the System Controls label was transparent by default -- that saves a step when you want a transparent label. Cool, thanks! thumbup1.gif


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Yair
post Oct 27 2007, 06:36 PM
Post #5


Extwemely Active
*****

Premium Member
Posts: 1634
Joined: 23-January 05
From: Here
Member No.: 1431
Using LabVIEW Since:2003
LV:8.6 ,7.0 ,.
Israel Nothing Selected Nothing Selected


QUOTE (BrokenArrow @ Oct 27 2007, 08:29 PM) *
1. I beleive that if you have flat data, it should stay flat.

Why? The cluster is simply the state machine data cluster. It holds all the data the SM needs to do its work. I consider that concept to be very simple and elegant and it has the added advantages of making your work easier, your code much cleaner and of satisfying your requirement. If you don't use the cluster in subVIs, you don't even have to make it a typedef.

QUOTE
2. Neat, but as I said in my last entry, this type of label could "get lost" couldn't it?

Yes, it could.

--------------------
More than meets the eye...


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
BrokenArrow
post Oct 27 2007, 06:46 PM
Post #6


Very Active
***

Member
Posts: 223
Joined: 30-July 05
From: Tampa Bay
Member No.: 2655
Using LabVIEW Since:2001
LV:8.5 ,8.2.1 ,7.1
United States Sweden us_florida My Gallery


QUOTE (Yen @ Oct 27 2007, 02:36 PM) *
Why? The cluster is simply the state machine data cluster. It holds all the data the SM needs to do its work. I consider that concept to be very simple and elegant and it has the added advantages of making your work easier, your code much cleaner and of satisfying your requirement. If you don't use the cluster in subVIs, you don't even have to make it a typedef.


Yes, it could.


Yen, Regarding the cluster vs. flat data, it's a bias on my part, having been told 6 or 7 years ago in some LabVIEW book somewhere to "keep data as flat as possible". Putting the data in a cluster has the advantage of just one wire "passin' through", which is an obvious advantage. When you unbundle it, there's your label. I probably should rethink some of my biases.

biggrin.gif But I still want me wire lables! biggrin.gif


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ton
post Oct 27 2007, 06:54 PM
Post #7


CCT It
*****

Premium Member
Posts: 1337
Joined: 13-June 05
From: Woerden, Netherlands
Member No.: 2399
Using LabVIEW Since:2001
LV:8.5.1 ,6.1 ,8.2.1
Netherlands hol_utrecht Nothing Selected My Blog My Gallery


Here's the long run:

Create a Tool VI that: finds the center of the current selected wire, get the datatype, drop a system label with the correct make-up.

Ton

Warning it's already saturday night here

--------------------
Certified LabVIEW Developer
Shouldn't you be programming a Code Repository solution?


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Yair
post Oct 27 2007, 07:03 PM
Post #8


Extwemely Active
*****

Premium Member
Posts: 1634
Joined: 23-January 05
From: Here
Member No.: 1431
Using LabVIEW Since:2003
LV:8.6 ,7.0 ,.
Israel Nothing Selected Nothing Selected


QUOTE (BrokenArrow @ Oct 27 2007, 08:46 PM) *
biggrin.gif But I still want me wire lables! biggrin.gif

I definitely agree.

QUOTE (tcplomp @ Oct 27 2007, 08:54 PM) *
Create a Tool VI that: finds the center of the current selected wire, get the datatype, drop a system label with the correct make-up.

I don't know how practical that would be on a per-wire basis (invoking it might be too time consuming), but we could probably do it for all wires if we add a tag to each wire describing its name. Of course, that has a host of other issues.

--------------------
More than meets the eye...


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
BrokenArrow
post Oct 27 2007, 08:34 PM
Post #9


Very Active
***

Member
Posts: 223
Joined: 30-July 05
From: Tampa Bay
Member No.: 2655
Using LabVIEW Since:2001
LV:8.5 ,8.2.1 ,7.1
United States Sweden us_florida My Gallery


QUOTE (tcplomp @ Oct 27 2007, 02:54 PM) *
Warning it's already saturday night here


Saturday afternoon here, another exciting weekend in Parenthood.

Yen,
I have noticed that Merge VI is now called Place VI Contents. I posted that on the NI nugget.

Richard


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 2nd December 2008 - 08:36 PM