Jump to content

XNodes: Difference between revisions

From LabVIEW Wiki
Correct earlier mistakes in how to set the icon for the palette - why did I think it was other than this ?!
Line 25: Line 25:
== XNodes in the Development Environment==
== XNodes in the Development Environment==
XNodes can be added to palettes as if they were plain [[VI]]s, however the icon
XNodes can be added to palettes as if they were plain [[VI]]s, however the icon
that is displayed in the palette is that of the [[Initialize (XNode Ability)|Initialize]] Ability vi and not the image created by the [[Image (XNode Ability)|Image]] Ability vi.
that is displayed in the palette is that stored in the .xnode file and not the image created by the [[Image (XNode Ability)|Image]] Ability vi. It is possible to set the icon in the .xnode file by manually editing the xml file. One way of doing this is to create a LabVIEW library (.lvlib, not .llb) from within LabVIEW and edit the icon for this library. Then making sure that all references to the Xnode are closed, open both the .lvlib file and .xnode file in a text editor and copy across the <Property Name="NI.Lib.Icon"... line.


==See Also==
==See Also==

Revision as of 22:48, 3 May 2007

XNodes are a technology built into LabVIEW 8.0+ that allows dynamic edit-time macro support.

XNodes are Libraries that feature several "Ability" VIs which consist of various events and methods of the XNode.

XNodes used in LabVIEW 8.2


Class Aggregate Handler? (vi.lib\Utility\AggHandler\Cls_AggHandler.xnode)
Class Grow Array Handler? (vi.lib\Utility\XGrowArr-llb\Cls_GrowArr.xnode)
Regular Expression (vi.lib\regexp\Match Regular Expression.xnode)
Shared Variables (vi.lib\variable\varXNode.llb\vi.lib\variable\varXNode.llb\varXNode.xnode)
Timed Loops (vi.lib\Platform\TimedLoop\XDataNode\XDataNode.xnode)
Database Variant To Data (vi.lib\addons\database\_DB Variant To Data\Database Variant To Data.xnode)

Ability VIs

Main Article: List of XNode Abilities.

XNodes in the Development Environment

XNodes can be added to palettes as if they were plain VIs, however the icon that is displayed in the palette is that stored in the .xnode file and not the image created by the Image Ability vi. It is possible to set the icon in the .xnode file by manually editing the xml file. One way of doing this is to create a LabVIEW library (.lvlib, not .llb) from within LabVIEW and edit the icon for this library. Then making sure that all references to the Xnode are closed, open both the .lvlib file and .xnode file in a text editor and copy across the <Property Name="NI.Lib.Icon"... line.

See Also