Tags |
(This content has not been tagged yet)
|
![]() |
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
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)
|
||
|
|
|||
| Ad |
Oct 27 2007, 05:11 PM
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
My Blog
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 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 --------------------
|
||
|
|
|||
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 ,.
|
A few additional relevant options for the present:
-------------------- More than meets the eye...
|
||
|
|
|||
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
My Gallery
|
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 A few additional relevant options for the present: 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!
|
||
|
|
|||
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 ,.
|
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...
|
||
|
|
|||
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
My Gallery
|
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.
|
||
|
|
|||
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
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 --------------------
|
||
|
|
|||
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 ,.
|
I definitely agree. 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...
|
||
|
|
|||
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
My Gallery
|
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
|
||
|
|
|||
![]() ![]() |
| Time is now: 2nd December 2008 - 08:36 PM |