LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out our VI Scripting Code Repository Files and visit the LabVIEW Wiki VI Scripting article


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> User Defined Tags in Variant Type Library
Tomi Maila
post Nov 9 2007, 11:58 PM
Post #1


Drawing Tool - LVOOP example application
*****

Premium Member
Posts: 1184
Joined: 29-January 06
From: Helsinki
Member No.: 4014
Using LabVIEW Since:2004
LV:8.5.1 ,8.2.1 ,7.1.1
Finland Nothing Selected Nothing Selected My Blog


Hi All,

I was investigating the LabVIEW 8.5 variant type library. What caught my interest are five last items in the library namely
  • GetUserDefinedTagInfo.vi
  • SetUserDefinedTagInfo.vi
  • GetUserDefinedTagRefnumInfo.vi
  • SetUserDefinedTagRefnumInfo.vi
  • GetRandomNumberForType.vi
I interpret that the four first VIs allows us to specify type properties when using LabVIEW scripting or XNodes with typed items. Could these even allow us to create our own reference types. Perhaps these tags could be properties like appearance and wire appearance. Let's assume we start from some reference type, then define the exact reference type with SetRefnumInfo.vi to be something like UserDefinedRefnumTag. If then go on by using the two SetUserDefined... methods above properly, could we actually have our own type? Could we script our own reference typed controls and indicators for our XNodes? Could we even be able specify the wire appearance? Could we use the GetRandomNumberForType.vi to make the type unique?

Just some questions that popped into my mind... Could someone help me to reverse engineer this issue. I'd really love to have my own reference types for my language extension... smile.gif

p.s. The VariantType.lvlib can be found under LabVIEW 8.5\vi.lib\Utility\VariantDataType

Cheers,

Tomi

--------------------
Tomi Maila



Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Nov 9 2007, 11:58 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
rolfk
post Jul 7 2008, 09:07 PM
Post #2


<customize this text>
*****

Premium Member
Posts: 1059
Joined: 9-April 04
From: Rotterdam
Member No.: 349
Using LabVIEW Since:1992
LV:8.5.1 ,8.2.1 ,7.1.1
Netherlands Switzerland Nothing Selected


QUOTE (Tomi Maila @ Nov 9 2007, 07:58 PM) *
Hi All,

I was investigating the LabVIEW 8.5 variant type library. What caught my interest are five last items in the library namely
  • GetUserDefinedTagInfo.vi
  • SetUserDefinedTagInfo.vi
  • GetUserDefinedTagRefnumInfo.vi
  • SetUserDefinedTagRefnumInfo.vi
  • GetRandomNumberForType.vi
I interpret that the four first VIs allows us to specify type properties when using LabVIEW scripting or XNodes with typed items. Could these even allow us to create our own reference types. Perhaps these tags could be properties like appearance and wire appearance. Let's assume we start from some reference type, then define the exact reference type with SetRefnumInfo.vi to be something like UserDefinedRefnumTag. If then go on by using the two SetUserDefined... methods above properly, could we actually have our own type? Could we script our own reference typed controls and indicators for our XNodes? Could we even be able specify the wire appearance? Could we use the GetRandomNumberForType.vi to make the type unique?

Just some questions that popped into my mind... Could someone help me to reverse engineer this issue. I'd really love to have my own reference types for my language extension... smile.gif

p.s. The VariantType.lvlib can be found under LabVIEW 8.5\vi.lib\Utility\VariantDataType

Cheers,

Tomi


User defined tags and user defined refnums are in fact quite like normal LabVIEW refnums. The Tag variant looks like a VISA resource and can have a text label that identifies the instance of the object. The refnum type looks similar to a file refnum. Those refnum types allow creating an object/method/event hierarchy using *.rc files in <LabVIEW>/resources/objmgr. The ultimate implementation of that object hierarchy has to reside in a DLL that exports certain functions that are defined in the according rc file.
I believe they exist since LabVIEW 7.0 and some of the necessary methods for that DLL to interface to LabVIEW exported C functions seem to have been accidentially? documented in the LabVIEW 7.1 and 8.0 extcode.h file.

Still trying to get something working here is a very tiresome exercise with lots of crashing and obviously involves external C programming.

Rolf Kalbermatter


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: 8th January 2009 - 01:26 AM