01-17-2006 07:02 AM
01-17-2006 07:31 AM
Interesting...
Wow... these Nuggets are very useful.. I am now looking forward to next week's..
😄
Thanks Ben & Darren for the info!
06-06-2006 03:32 PM
@Darren wrote:
... if you hold down "Ctrl" when you double-click a subVI, both the front panel AND the block diagram of the subVI will open. ...
06-06-2006 03:58 PM
Hi Brad,
You should file a request at the Product Suggestion Center that this issue be addressed in a future LabVIEW version. For now, you could run the VI Analyzer on your VIs and the Wires Under Objects test would have detected that you had an object (in this case, your copied subVI) overlapping wires (in this case, the wires that are connected to the hidden subVI). The Wires Under Objects test is one of the best in the entire suite of tests in the VI Analyzer when it comes to detecting problems in your code that are difficult to detect with visual inspection.
Good luck,
-D
06-07-2006 07:30 AM
@Darren wrote:
Hi Brad,
You should file a request at the Product Suggestion Center that this issue be addressed in a future LabVIEW version. For now, you could run the VI Analyzer on your VIs and the Wires Under Objects test would have detected that you had an object (in this case, your copied subVI) overlapping wires (in this case, the wires that are connected to the hidden subVI). The Wires Under Objects test is one of the best in the entire suite of tests in the VI Analyzer when it comes to detecting problems in your code that are difficult to detect with visual inspection.
Good luck,
-D
Thanks for the info - I'll definitely file that request at the Product Suggestion Center. About the VI Analyzer - I wish I had it. If I'm brave enough to ask my boss for it, I'll stand behind something in case he throws something at me. He's been very jaded at the high cost of NI software that is already on this one and only LabVIEW test station that I am maintaining the code for. Unfortunately, I don't think any new test stations we buy or build will be run by LabVIEW. Bad news for me since I don't really look forward to taking a step backward by having to deal with test stations running on C++ or Visual Basic.
- Brad
06-07-2006 10:10 AM
Hi Brad,
Sorry to hear that...perhaps you could explain that the $995 cost of the VI Analyzer could easily be made up in lost debugging time within a matter of mere months! 😛
-D
06-07-2006 10:49 AM
Darren wrote;
"perhaps you could explain that the $995 cost of the VI Analyzer could easily be made up in lost debugging time within a matter of mere months! ".
Well in the case of in-house staff that are already salary, their time is often viewed as being "free" (because extra effort by them cost $0 ).
So
$995 / 0 = +Inf
Most of us will be retiring before then.
Ben
06-08-2006 04:00 PM
02-13-2007 07:54 AM
First off, GREAT thread and new feature. I've already learned about 4 new tips and tricks and things to watch out for just in this one thread.
Re: Brad's note:
"Thanks for the info - I'll definitely file that request at the Product Suggestion Center. About the VI Analyzer - I wish I had it. If I'm brave enough to ask my boss for it, I'll stand behind something in case he throws something at me. He's been very jaded at the high cost of NI software that is already on this one and only LabVIEW test station that I am maintaining the code for. Unfortunately, I don't think any new test stations we buy or build will be run by LabVIEW. Bad news for me since I don't really look forward to taking a step backward by having to deal with test stations running on C++ or Visual Basic.
- Brad "
I hate reading about workplaces that have such attitudes because I've worked at such places, and the people running or owning such places are fighting a losing battle trying to keep those legacy languages going. Point out to your boss that the future of PC's and test stations is going to be multi-core processors and that only LabVIEW is set up inherently to take advantage of those capabilities without ridiculous amounts of extra code to keep things in separate processing loops. That individual may have no interest in hearing about it, but the better language will win in the long run.
All the best.
- Eliot
07-09-2008 03:06 PM
So nearly two and a half years later, I'm looking back on this nugget and doing a little investigation. It turns out that Ben did his Search/Split String benchmarks in LabVIEW 7.1, which, indeed, are accurate...the Search/Split String trick definitely increases the speed of a simple string search. However, the performance of the Match Pattern function was greatly improved in LabVIEW 8.0. You will see the performance increase that Ben describes pretty much disappear in LabVIEW 8.0, and in later LabVIEW versions (try out his VI for yourself), Match Pattern can actually be slightly *faster* than Search/Split String in some cases (depending on where within the string the match is found). So in the interest of full disclosure, I must clarify that this nugget is definitely helpful in LabVIEW 7.1 and earlier, but in LabVIEW 8.0 and later, you may not find it so useful. If your string parsing algorithm must be as fast as possible, I recommend benchmarking to determine whether or not Search/Split String or Match Pattern is faster for your situation.
-D