LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> [Wiki] XNodes:List of XNode Abilities
PJM_labview
post Sep 23 2007, 07:36 AM
Post #1


Extremely Active
****

JKI
Posts: 612
Joined: 19-June 03
From: Bay Area, CA (USA)
Member No.: 121
Using LabVIEW Since:1998
LV:8.5.1 ,8.6 ,8.2.1
United States France Nothing Selected My Blog


This is the discussion topic for the wiki article: List of Xnode Abilities

What are the difference between Ability Name and Public Name? What is the Public Name used for?

I initially tought that the Public Name was used in the reply output of some abilities, but this is not the case.

Does anybody have a list of supported replies command?

So far I found the following replies commands:
  • UpdateImageAndBounds
  • UpdateTerms
  • GenerateCode
I am trying to get LabVIEW to call the "Size" ability. I tried UpdateSize, OnResize, Size but none worked. Any idea?

Thanks

PJM

--------------------

Got VIPM?

JKI . VIPM . EasyXML . OpenG . LAVA . Builder . Blog



Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Sep 23 2007, 07:36 AM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
PJM_labview
post Sep 23 2007, 07:33 PM
Post #2


Extremely Active
****

JKI
Posts: 612
Joined: 19-June 03
From: Bay Area, CA (USA)
Member No.: 121
Using LabVIEW Since:1998
LV:8.5.1 ,8.6 ,8.2.1
United States France Nothing Selected My Blog


After digging a bit more, here is a possible - mostly untested - reply list (items in bold have been tested).
  • SaveForPrevious
  • AugmentSelf
  • ReplaceSelf
  • ModifyCode
  • GenerateCode
  • IssueWarning
  • SdfX
  • SimX
  • XNodeType
  • PreserveUserCodeGUID
  • UpdateTerms
  • UpdateLabel
  • UpdateImageAndBounds
  • UpdateImage
  • UpdateHelp
  • UpdateAutotoolRegions
  • ShowMenu
  • FailTransaction
  • ChangeTransactionName
PJM

--------------------

Got VIPM?

JKI . VIPM . EasyXML . OpenG . LAVA . Builder . Blog



Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Gavin Burnell
post Sep 23 2007, 07:59 PM
Post #3


Very Active
***

Premium Member
Posts: 119
Joined: 21-January 06
From: Leeds, UK
Member No.: 3951
Using LabVIEW Since:1994
LV:8.5.1 ,8.6 ,8.2.1
United Kingdom uk_yorkshire Nothing Selected


QUOTE (PJM_labview @ Sep 23 2007, 08:33 PM) *
After digging a bit more, here is a possible - mostly untested - reply list (items in bold have been tested).


Ummm, which version of LabVIEW is this for ? I know there were substantial changes in abilities (and replies?) between 8.0 and 8.2, I assume that there have been more changes with 8.5....

--------------------
Gavin Burnell
Lecturer and EPSRC Advanced Research Fellow
School Physics and Astronomy
University of Leeds, UK.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
PJM_labview
post Sep 23 2007, 08:25 PM
Post #4


Extremely Active
****

JKI
Posts: 612
Joined: 19-June 03
From: Bay Area, CA (USA)
Member No.: 121
Using LabVIEW Since:1998
LV:8.5.1 ,8.6 ,8.2.1
United States France Nothing Selected My Blog


These replies are for LabVIEW 8.21.

Please note that the one I did not test might not even be valid replies.

PJM

--------------------

Got VIPM?

JKI . VIPM . EasyXML . OpenG . LAVA . Builder . Blog



Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Aitor Solar
post Sep 25 2007, 06:59 AM
Post #5


Extremely Active
****

Member
Posts: 262
Joined: 26-January 05
Member No.: 1450
Using LabVIEW Since:2000
LV:8.5 ,8.20 ,7.1.1
Spain spn_Madrid Nothing Selected


QUOTE (PJM_labview @ Sep 23 2007, 09:36 AM) *
I am trying to get LabVIEW to call the "Size" ability. I tried UpdateSize, OnResize, Size but none worked. Any idea?


I think Size is only called when the user resizes the XNode. Why do you need to call it? You can invoke an UpdateImageAndBounds reply to call the Bounds ability and tell LabVIEW the new dimensions for your XNode.

Saludos,
Aitor


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
PJM_labview
post Sep 25 2007, 04:13 PM
Post #6


Extremely Active
****

JKI
Posts: 612
Joined: 19-June 03
From: Bay Area, CA (USA)
Member No.: 121
Using LabVIEW Since:1998
LV:8.5.1 ,8.6 ,8.2.1
United States France Nothing Selected My Blog


Aitor

I had a use case were this would have been convenient. Basically after a right click selection, I needed to redraw my xnode. But prior to that I had to resize it. Since I could not do it (invoking the size through a reply), I was able to achieve what I was trying to do by just running part of the size code in the SelectMenu3.vi before sending the UpdateImageAndBounds reply.

PJM

--------------------

Got VIPM?

JKI . VIPM . EasyXML . OpenG . LAVA . Builder . Blog



Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
AdamRofer
post Sep 25 2007, 04:50 PM
Post #7


More Active
Group Icon
**

WIKI Moderator
Posts: 47
Joined: 29-June 05
From: Santa Cruz, CA
Member No.: 2496
Using LabVIEW Since:2000
LV:8.5 ,6.1 ,7.1.1
United States us_california Nothing Selected


QUOTE (PJM_labview @ Sep 22 2007, 11:36 PM) *
This is the discussion topic for the wiki article: List of Xnode Abilities

What are the difference between Ability Name and Public Name? What is the Public Name used for?

I initially tought that the Public Name was used in the reply output of some abilities, but this is not the case.

Does anybody have a list of supported replies command?

So far I found the following replies commands:
  • UpdateImageAndBounds
  • UpdateTerms
  • GenerateCode
I am trying to get LabVIEW to call the "Size" ability. I tried UpdateSize, OnResize, Size but none worked. Any idea?

Thanks

PJM


Public Name is a publicly viewed name for the ability that changes on different versions of LabVIEW.
Ability Name is the name recognized by LabVIEW internally.

Previous explanation:
http://forums.lavag.org/Wiki-XNodes-t6811.html#entry26206

Example:
CODE

<Item Name="GetGrowInfo.vi" Type="Ability VI" URL="GetGrowInfo.vi">
<Property Name="NI.XItem.Name" Type="Str">GrowInfo</Property>
</Item>

In this example, GetGrowInfo is the Public Name (it describes the function more properly here), and GrowInfo is the Ability Name.
Naming your VI "GetGrowInfo.vi" is, of course, only a suggestion. You can choose to ignore the Public Name.

The reason this situation ended up becoming slightly ugly is that NI didn't plan to rewrite their Ability Names very carefully, so you have this situation:

1) LabVIEW 8.0: BuildPopup (now with public name "BuildMenu") is created. An input or output cluster contains X elements.
2) LabVIEW 8.?: BuildMenu (now with public name "BuildMenu2") is created to fix a problem or add functionality to (1). NI at this point did not use their current renaming strategy.
3) LabVIEW 8.2?:BuildMenu3 (with public name "BuildMenu3") is created to fix a problem or add functionality to (2). When this Ability is incorporated, the public names for the two previous "revisions" are set to BuildMenu2 and BuildMenu despite the confusion that now occurs.

The reason they do this is so that (a) you can see that BuildPopup was simply the first attempt in the series of the BuildMenu Abilities, and (b) backwards compatibility is retained.
This system works well now, but unfortunately the existence of old versions complicates the naming scheme like this.


As for replies, you should be able to call a large amount of "Abilities" (by their Ability Name) by specifying the reply as such. Your list is the first that I've seen.

It seems like you have the "Size" situation taken care of.
- Adam

--------------------
Adam Rofer


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
PJM_labview
post Sep 26 2007, 04:46 PM
Post #8


Extremely Active
****

JKI
Posts: 612
Joined: 19-June 03
From: Bay Area, CA (USA)
Member No.: 121
Using LabVIEW Since:1998
LV:8.5.1 ,8.6 ,8.2.1
United States France Nothing Selected My Blog


Adam,

Thanks for the info.

I never realized what was the public name because I used the XNode Manager from Aitor thumbup1.gif and I never had to mess with the xml file directly.

As for the replies, I though I tried to call a couple of them by their name unsucessfully. I will give it another shot.

PJM

--------------------

Got VIPM?

JKI . VIPM . EasyXML . OpenG . LAVA . Builder . Blog



Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Michael_Aivaliot...
post Sep 29 2007, 10:33 PM
Post #9


Confucius say: Crowded elevator always smell different to midget
Group Icon
*****

Admin
Posts: 2363
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


Someone please add the info from this thread in the xnodes wik article or make a new page.

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 22nd November 2008 - 06:42 AM