Jump to content

Create XNode Properties/Methods


Recommended Posts

Without an XNode license creating a list of available properties and methods of the XNode and XNode Library classes is difficult.  It is similar to having private methods.  If you have a private property on the BD it works just fine and you can copy it and use it in other VIs.  Luckily NI has scripting functions for doing things like setting property nodes and finding what properties are valid for a specific class.

 

So with the help and collaboration with Jack Dunaway I've made a tool for getting the list of available property and invoke nodes for the XNode and XNode Library classes, and allow you to make those objects.  Now not all of the functions will work without a XNode License but I suspect most do.

 

Several abilities in an XNode return a XRef which is a reference to the XNode and is where these properties and methods could come in handy.

 

Also attached is a VI that just has all of the properties and methods for LabVIEW 2013 SP1, but the tool should be able to make any new ones in newer versions as well.

 

But all along we had the power to make these using native LabVIEW tools.  Quick Drop has the class browser function, with it you can set the class of objects and the properties of property nodes.  So following these steps will create an XNode property:

 

Drop a new property node on the BD.

Select the property node.

Invoke QD

Type "XNode" (without quotes)

Press CTRL+B

Select the property node

Invoke QD

Type "State" (without quotes)

Press CTRL+Shift+B

 

And lastly this is all very experimental.  Using undocumented XNode technology, along with private functions can lead to unexpected crashing and strangeness.  But for the most part these properties and methods have some level of documentation just don't be surprised if they don't work right, or don't do what you expect.

Create Methods Properties for XNodes.vi

All Methods and Properties.vi

  • Like 1
Link to comment
  • 1 month later...

They can be created using scripting, but I don't think if you click on an XNode Property node, that it will list the available properties.  The purpose of this was to essentially show what all properties and methods are available for the XNode and XNode Library classes.

Link to comment

Select the property node

Invoke QD

Type "State" (without quotes)

Press CTRL+Shift+B

 

And lastly this is all very experimental.  Using undocumented XNode technology, along with private functions can lead to unexpected crashing and strangeness.  But for the most part these properties and methods have some level of documentation just don't be surprised if they don't work right, or don't do what you expect.

And I finally learn what that QD shortcut does.

I'm also surprised you would need a license to view certain properties but I guess I will have to check that. Do they not show when Xnodewizardmode is enabled as well?

 

Edit: You are correct Hooovahh

Edited by jacobson
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.