Jeffrey Habets Posted November 9, 2007 Report Share Posted November 9, 2007 Hi guys, I have the habit of always labeling my shiftregs on the left hand side of the loop they're on. I use free labels for that, but it would be nice if the labels where (optionaly) automatically created (like with objects on the FP). They would be attached to the shiftreg, moving with it when the shiftreg is moved up or down. besides being a handy feature for myself, it would probably also encourage others who don't label their shiftregs now to do it anyway, because it would be the next logical (more or less forced) step after creating the register. What do you guys think? Quote Link to comment
Yair Posted November 9, 2007 Report Share Posted November 9, 2007 Definitely a good idea. Sounds like a visit to NI's product suggestion center is in order. To reduce the number of wires, you can also use a single cluster for all the data. See a recent discussion here. Quote Link to comment
Jeffrey Habets Posted November 9, 2007 Author Report Share Posted November 9, 2007 QUOTE(Yen @ Nov 8 2007, 05:41 PM) Definitely a good idea. Sounds like a visit to NI's product suggestion center is in order.To reduce the number of wires, you can also use a single cluster for all the data. See a recent discussion http://forums.lavag.org/Wire-Labels-wanted-t9391.html' target="_blank">here. Yes of course.. But for simple (lv2-style) sub-vi's where you know not much will change later on, it's still convenient to just use a shift reg or two-three.. I'll enter it in the product suggestion center... Quote Link to comment
shoneill Posted November 9, 2007 Report Share Posted November 9, 2007 QUOTE(Jeffrey Habets @ Nov 8 2007, 12:55 PM) Hi guys,I have the habit of always labeling my shiftregs on the left hand side of the loop they're on. I use free labels for that, but it would be nice if the labels where (optionaly) automatically created (like with objects on the FP). They would be attached to the shiftreg, moving with it when the shiftreg is moved up or down. besides being a handy feature for myself, it would probably also encourage others who don't label their shiftregs now to do it anyway, because it would be the next logical (more or less forced) step after creating the register. What do you guys think? Yup, sounds like good idea with solid reasoning. I look forward to this in future versions...... Thanks Shane. Quote Link to comment
dthomson Posted November 9, 2007 Report Share Posted November 9, 2007 QUOTE(Jeffrey Habets @ Nov 8 2007, 04:55 AM) Hi guys,I have the habit of always labeling my shiftregs on the left hand side of the loop they're on. I use free labels for that, but it would be nice if the labels where (optionaly) automatically created (like with objects on the FP). They would be attached to the shiftreg, moving with it when the shiftreg is moved up or down. besides being a handy feature for myself, it would probably also encourage others who don't label their shiftregs now to do it anyway, because it would be the next logical (more or less forced) step after creating the register. What do you guys think? I think it's a great idea. I used to put it in the suggestion box about every version, but lately it slipped off my radar. I would also suggest built-in lables for Sequence-Locals. (Not that I would ever use a Sequence Local!) It seems obvious to me. NI pushes for programming standards, including good documentation, but this obvious feature remains missing. Cheers, Dave T. Quote Link to comment
Bobillier Posted November 14, 2007 Report Share Posted November 14, 2007 Hi Today i have creat a small tool that can perhapse help you . This tool place a name in description attribut for wire that you before select on diagram. First step: Please place the "Give name to wire.vi" in your labview\project folder and restart labview. Second step Open Vi and select one Wire and make Tools\Give name to wire.vi If all is correct, this Vi promt you for give name to this wire. Last step Place mouse in wire and show it name in contextual help. Nota : have use CCT_Get User App Reference__CCT.vi part of the Code Capture Tool and is covered by the BSD license (see code reposary of lavag) Eric Quote Link to comment
Ton Plomp Posted November 15, 2007 Report Share Posted November 15, 2007 QUOTE(BOBILLIER @ Nov 14 2007, 01:09 AM) Open Vi and select one Wire and make Tools\Give name to wire.viIf all is correct, this Vi promt you for give name to this wire. Last step Place mouse in wire and show it name in contextual help. Nota : have use CCT_Get User App Reference__CCT.vi part of the Code Capture Tool and is covered by the BSD license (see code reposary of lavag) Eric One question, how is this faster than right click->description? Ton (good to see you use the CCT :thumbup: ) Quote Link to comment
Bobillier Posted November 15, 2007 Report Share Posted November 15, 2007 CITATION(tcplomp @ Nov 14 2007, 07:44 AM) One question, how is this faster than right click->description?Ton (good to see you use the CCT :thumbup: ) I forget that you can access to description with right clik. :worship: Quote Link to comment
gosor Posted February 1, 2008 Report Share Posted February 1, 2008 I agree, it would be usefull to add a comparable feature for local variables of stacked sequence . Quote Link to comment
silmaril Posted February 1, 2008 Report Share Posted February 1, 2008 QUOTE(gosor @ Jan 31 2008, 03:53 PM) I agree, it would be usefull to add a comparable feature for local variables of stacked sequence . I don't agree with this latest addition. There are virtually no reasons to use any stacked sequences in a well-designed LV application. There are even fewer reasons to use sequence locals. I don't think NI should invest any extra development time in a feature that only supports bad programming style. Sorry for the harsh words, but I had to go through my share of stacked-sequence-applications, and I didn't find one stacked sequence which could not have been replaced using other features, like sub-VIs. In all cases, this would have improved readability of the code a lot! Quote Link to comment
crelf Posted February 1, 2008 Report Share Posted February 1, 2008 QUOTE(silmaril @ Jan 31 2008, 11:56 AM) There are virtually no reasons to use any stacked sequences in a well-designed LV application. This is an arguement that we've had before, so let me cut to the chase: There are few reasons to use any stacked sequences in a well-designed LV application. Like all rules, there are exceptions. There are cases where you need to force dataflow where it doesn't currently exist, and encapsulating code in a subVI or a flat sequence structure can be equally appropriate. Like all programming paradigms, it's all about using the right tool for the job. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.