LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

Before you submit code to the Code Repository, please make sure you have read the following:
Introduction - Submission Guidelines - Submission Procedure - (post questions here)

  Search Files 

> XNode Wrapper

Screenshot
File Information
File Name XNode Wrapper by mike_nrao
Submitted Jul 6 2006, 08:48 PM
Last Updated Mar 4 2007, 10:10 AM
File Type File Type (zip - application/zip)
Screenshot Click here for full screenshot
Statistics
File Size 295.96K (Estimated Download Times)
Views 1288
Downloads 208
Add Rating
To use this VI: Put it in the same directory as the VI you want to "wrap" and rename this VI to ";Dxxx_targetVI.vi" where 'xxx' can be anything, and 'targetVI' is the name of the VI you want to "wrap". The target VI must have a 'type' input terminal and a 'data' output terminal (these can be wired anywhere on the connector pane).

Now you can drop this VI on block diagrams instead of your target VI. The 'data' output terminal will conform to be whatever datatype is wired to the 'type' input. Your target VI will still appear in the VI Hierarchy as a subVI. Double-clicking this node on the block diagram will open the target VI..

This is accomplished within the xnode by altering the terminal specifications and by typecasting the output data from the target VI to the datatype wired to the 'type' input.

Much of this implementation was done in LabVIEW 7.1 using VI scripting which is available by adding the following lines to LabVIEW.ini:
SuperPrivateScriptingFeatureVisible=True
SuperSecretPrivateSpecialStuff=True

Here's the disclaimer:
DO NOT contact NI for support on VI Scripting.
DO NOT use these features for released code or applications to your customers.
DO NOT count on the implementation to stay the same for future releases of LV. It will change and your code will not be upgradable.

The code is pretty well commented. White text boxes describe how the xnode functions. Yellow text boxes are implementation details.

Thanks to Adam Rofer for the XNode documentation available at

http://xnodes.lavag.org/XNode.html


Have fun using this VI. Let me know what kind of exciting uses you find for it. Email me at
mlacasse@nrao.edu

Known issues/bugs:
- In LabVIEW 8, the VI description doesn't update correctly from the target VI. It works in LV7.1 to get the target VI's description to show up in the context help window, but not in 8. Not sure why.
- Terminal Labels don't appear in context help window. The icon image of the subVI is succesfully copied, but not the terminal labels. This would be a nice fix. 'Get Conpane Image' gets what I want from the target VI but there is no 'Set Conpane Image'.
- Is there any way not to require ';Dxxx_' in the VI name, but still have it work right?
- If the target VI is not executable, the errors list only says 'External Node: Code could not be generated correctly for this VI'. Thats not very helpful.
- Still working on finding a way to automatically rescript the xnode when changes are made to the target VI. This would be nice so if a control or indicator name is changed on the target, the terminals on the xnode will be renamed accordingly.
Other Information
Support Topic Click here to visit support topic
File Version 1.0.0
LabVIEW Version 7.1.x
License GNU Public License
Operations
Download File

> Saved Versions

Name Filename Updated Operations
XNode Wrapper xnode_wrapper.zip 23rd October 2006 - 12:22 AM

Search Files 

Collapse

> Code Repository Statistics

Last ten submissions accepted · Downloads system statistics 
3 user(s) active in the past 15 minutes
Active Users 2 guests, 1 members, 0 anonymous members
Code Repository Statistics
Board Stats We have a total of 68 files in 13 categories
A total of 37 unique authors have submitted to our site
There have been 23286 logged downloads to date
The latest file submitted was Waveform Xcontrol.zip by Gavin Burnell (submitted Sep 18 2008, 11:21 AM)


Time is now: 7th October 2008 - 07:53 AM