LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Micro-Nuggets !!! ~~~~ Post 'em if you got 'em

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 ...  Find Target.png

Message 111 of 368
(2,850 Views)

This diagram snapshot says it all:

 

ScreenHunter_008.jpg

Message 112 of 368
(2,756 Views)

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".

Message 113 of 368
(2,749 Views)

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?).

0 Kudos
Message 114 of 368
(2,742 Views)

Someday I'd like to do this and obliviate the need for the comments with the value.

 

Message 115 of 368
(2,732 Views)

That's borderline heretic, isn't it? Merging the BD anf FP!?

0 Kudos
Message 116 of 368
(2,727 Views)

Ok. So, someday you will right-click and select "View as control".  This will look great when dealing with pictures.

0 Kudos
Message 117 of 368
(2,727 Views)

@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...

0 Kudos
Message 118 of 368
(2,719 Views)

@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.  Smiley Wink

 

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Attached-Probe-or-Block-Diagram-Indicator/idi-p/985815

 

0 Kudos
Message 119 of 368
(2,699 Views)

@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.  Smiley Wink

 

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. Smiley Sad

Message 120 of 368
(2,691 Views)