01-28-2012 04:24 PM
I needed to programmatically to determine the name of the PC on which my code was running. Turns out the easiest way to do this in LabVIEW is to use the String-to-IP and IP-to-String VIs back-to-back. With a little more code, I realized this could also be used to ask "Is this machine on the network?". Here's a snippet and I'll try to attach the VI itself ...
02-10-2012 04:06 PM - edited 02-10-2012 04:16 PM
02-10-2012 04:13 PM
Really nice and compact. Note: There is a "copy and paste" typo in the result of the "Inverted Multiply" which actually must be "result: 0.5".
02-10-2012 04:17 PM
Thanks for catching it, I corrected it (I can't believe that I was not actually kicked out of the editor or timed out already: a micromiracle?).
02-10-2012 04:25 PM
Someday I'd like to do this and obliviate the need for the comments with the value.
02-10-2012 04:30 PM
That's borderline heretic, isn't it? Merging the BD anf FP!?
02-10-2012 04:31 PM
Ok. So, someday you will right-click and select "View as control". This will look great when dealing with pictures.
02-10-2012 04:34 PM
@X. wrote:
That's borderline heretic, isn't it? Merging the BD anf FP!?
Yes. For small pieces of code I would prefer this merger of FP and BD.
Now we need a good name for that feature...
02-10-2012 05:57 PM - edited 02-10-2012 05:59 PM
@GuenterMueller wrote:
@X. wrote:
That's borderline heretic, isn't it? Merging the BD anf FP!?
Yes. For small pieces of code I would prefer this merger of FP and BD.
Now we need a good name for that feature...
Please go and vote for this idea.
http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Attached-Probe-or-Block-Diagram-Indicator/idi-p/985815
02-10-2012 06:15 PM
@Ravens Fan wrote:
@GuenterMueller wrote:
@X. wrote:
That's borderline heretic, isn't it? Merging the BD anf FP!?
Yes. For small pieces of code I would prefer this merger of FP and BD.
Now we need a good name for that feature...
Please go and vote for this idea.
http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Attached-Probe-or-Block-Diagram-Indicator/idi-p/985815
LabVIEW (forum) micronugget:
When suggesting new features to the LV Idea Exchange it is almost always a good idea to use less text and more descriptive picture. I can say with absolute certainty that the aforementioned idea would have received at least one more Kudos in its initial run if the picture had been shown in place of much of the text. Almost certainly many more.
Corollary: Pictures used in the idea pitch should probably be stripped down to the bare necesseties to focus attention on the elements of the idea itself.
Due to some of the mechanics of the Idea Exchange, it is probably too late to salvage RF's excellent suggestion.