LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Darren's Weekly Nugget 1/30/2006

(nugget coming soon...)

Message Edited by Darren on 01-30-2006 10:21 AM

0 Kudos
Message 1 of 21
(16,564 Views)

<<< Ok, for some reason my computer froze when I attempted to edit this message, and after my reboot, it wouldn't let me edit the original.  So now I'll just reply to my original post with what should have been my original post... 😛 >>>

So anyway, today's nugget involves a cool shortcut with the Open VI Reference function.  One of the more common operations we have to do with Open VI Reference involves getting a reference to a VI that resides next to the current VI on disk.  When I first started programming in LabVIEW, this is how I did it:

Then, somebody showed me the trick where I didn't need to use Strip Path, I could just construct a relative path with the Build Path function:

Well, the other day, I learned of an even better method:

That's right, if you wire a path constant into Open VI Reference, and the path constant simply contains the name of a VI, then Open VI Reference will look on disk in the same folder/LLB as the current VI to find that VI.  So no more Current VI's Path, Build Path, or Strip Path on the diagram!  This approach works in LabVIEW 6.0 and later...it may even work in earlier versions, but 6.0 is the oldest version I checked.

-D

Message Edited by Darren on 01-30-2006 10:40 AM

Download All
Message 2 of 21
(16,553 Views)
Nice!

Well, I got to show off one of the most overlooked features of LabVIEW 8 - the "Call Setup..." feature. This feature enables dynamic loading with VI Server by a simple right-click on the SubVI. It's almost too easy...



The above screenshot shows how you define the SubVI to be called as a dynamic VI instead - and the path to the VI is now included in the popup!

Voila!!!

Message Edited by Philip C. on 01-30-2006 12:00 PM

- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
Message 3 of 21
(16,506 Views)


@Philip C. wrote:
one of the most overlooked features of LabVIEW 8
I noticed it when I read the (very long) upgrade notes. Smiley Happy
 
An important question regarding this is whether this applies in LVRT as well and how well it functions if it does.
 
BTW, do you fly from Singapore to Denmark to the US every day???
Must make your work day very long... Smiley Very Happy

___________________
Try to take over the world!
Message 4 of 21
(16,492 Views)

Darren wrote:

Well, the other day, I learned of an even better method:


Hmmm... I've been using this for ages! 😉 I must have stumbled on this by accident. (See e.g. 1DFit.llb posted HERE .)

 

So, the qustion of course remains, why only for VI references?? 😮 Wouldn't it be more desirable to standardize this syntax so it can be used for any file operation?

 
 
0 Kudos
Message 5 of 21
(16,450 Views)
Hey TST
if it takes the man a minium of 16hrs from Singapore to Copenhagen ( no direct flights Smiley Mad) and there must be a stopover of 2hrs to conform to travel regulations
then 6 hours to NY when does he work? Either  he's got a dam good laptop or an infinite supply of batteries. Surfing the net would also be
expensive bouncing off the  satellite  coverage.

So why does he claim to be in three places ? Will the plot thicken ?

hummSmiley Surprised

xseadog

Message 6 of 21
(16,476 Views)
He is part of a prototype hive-mind.  Three separate bodies sharing a single consiousness.  And he runs on LVRT!
Message 7 of 21
(16,464 Views)


@jasonhill wrote:
He is part of a prototype hive-mind.  Three separate bodies sharing a single consiousness.  And he runs on LVRT!



Oh No!!!!  The borg has asimilated LVRT!!!!!!  (for all you Trekkies)
- tbob

Inventor of the WORM Global
Message 8 of 21
(16,446 Views)

May be he broke the light velocity barrier or owns a stratoship! Smiley Wink

Back to the main topic, Why not float this 'weekly nugget' discussion to the top of the board??

I missed it out the last week's posting! Smiley Mad

 

 

Message Edited by devchander on 01-30-2006 10:11 PM

0 Kudos
Message 9 of 21
(16,414 Views)

Hey dev,

Some of your fellow posters have a Breakpoint topic that links to all my nuggets:

http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=1669

Enjoy,

-D

0 Kudos
Message 10 of 21
(16,407 Views)