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
> Scripting Workbench Beta, Scripting tool
Aitor Solar
post Nov 12 2007, 09:49 AM
Post #1


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


As requested, here is this simple tool intended for providing an easy way of calling properties and methods. I thinks it's pretty intuitive and works as other similar applications. Select the LabVIEW version, the class and the desired properties or method. Press "copy" to have the function in the clipboard and paste it in a block diagram.

Attached Image


Known issues:
  • The description box doesn't show anything, because I haven't found a way of programmatically retrieving it. Any idea will be welcome.
  • Some properties can't be created this way. For example, try Generic -> Owner and you'll see the deprecated property is created instead.
  • Maybe not all properties and methods are included and can be some repeated. You can play with the txt files to add and try ned props/meths.
  • The search capability was added as an afterthought and I would prefer to have it better integrated. But still useful.
Please tell me any improvement or idea you get.

Saludos,
Aitor
Attached File(s)
Attached File  scripting_workbench.beta3.zip ( 463.07K ) Number of downloads: 258
 


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Nov 12 2007, 09:49 AM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
dannyt
post Nov 12 2007, 12:07 PM
Post #2


Very Active
***

Member
Posts: 75
Joined: 13-December 06
From: Devon UK
Member No.: 7256
Using LabVIEW Since:2006
LV:8.2.1 ,7.0 ,.
uk_devon United Kingdom Nothing Selected


Hi Aitor

Your tool looks quite interesting and I was going to have a play with it but the llb in the zip file is saved in LabVIEW 8.5 so I cannot open it.

It is possible for you to post LabVIEW 8.2 or 8.2.1 version please

cheers

Dannyt


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Aitor Solar
post Nov 12 2007, 01:08 PM
Post #3


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 (dannyt @ Nov 12 2007, 01:07 PM) *
It is possible for you to post LabVIEW 8.2 or 8.2.1 version please


Sure, here it is, try it. Keep in mind that this just replaces the llb, you'll still need the directories provided with the first zip.

Saludos,
Aitor
Attached File(s)
Attached File  scripting_workbench.beta3.LV82.zip ( 313.71K ) Number of downloads: 140
 


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
dannyt
post Nov 12 2007, 01:29 PM
Post #4


Very Active
***

Member
Posts: 75
Joined: 13-December 06
From: Devon UK
Member No.: 7256
Using LabVIEW Since:2006
LV:8.2.1 ,7.0 ,.
uk_devon United Kingdom Nothing Selected


QUOTE (Aitor Solar @ Nov 12 2007, 01:08 PM) *
Sure, here it is, try it. Keep in mind that this just replaces the llb, you'll still need the directories provided with the first zip.

Saludos,
Aitor


Thanks that works fine


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
martin@aerodynam...
post Nov 13 2007, 09:39 AM
Post #5


Very Active
***

Member
Posts: 178
Joined: 19-January 05
From: Switzerland
Member No.: 1396
Using LabVIEW Since:1998
LV:8.20 ,8.0.1 ,7.1.1
Switzerland Switzerland Switzerland


QUOTE (Aitor Solar @ Nov 12 2007, 10:49 AM) *
As requested, here is this simple tool intended for providing an easy way of calling properties and methods. I thinks it's pretty intuitive and works as other similar applications. Select the LabVIEW version, the class and the desired properties or method. Press "copy" to have the function in the clipboard and paste it in a block diagram.

Known issues:
  • The description box doesn't show anything, because I haven't found a way of programmatically retrieving it. Any idea will be welcome.
  • Some properties can't be created this way. For example, try Generic -> Owner and you'll see the deprecated property is created instead.
  • Maybe not all properties and methods are included and can be some repeated. You can play with the txt files to add and try ned props/meths.
  • The search capability was added as an afterthought and I would prefer to have it better integrated. But still useful.
Please tell me any improvement or idea you get.

Saludos,
Aitor

Saludo
The tool looks verry vell!
Unfortunately I can't create a single property, since I'm using LabVIEW German, and all the Properties have different names...
I tried to edit the txt file and entered the german names but i still get the error 1113...
Attached Image
Have you any Idea?
Martin

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

Happy Wiring! (User defined "Swiss Wire Class" for neutral data only!!!)


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Aitor Solar
post Nov 13 2007, 12:26 PM
Post #6


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 (martin@aerodynamics @ Nov 13 2007, 10:39 AM) *
Saludo
The tool looks verry vell!
Unfortunately I can't create a single property, since I'm using LabVIEW German, and all the Properties have different names...
I tried to edit the txt file and entered the german names but i still get the error 1113...


Umm. Open "update property.vi" and "update method.vi" and change the "VI Server:" text in both, since probably is also different in German. Follow the image guideline:

Attached Image


Saludos,
Aitor


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
martin@aerodynam...
post Nov 14 2007, 11:30 AM
Post #7


Very Active
***

Member
Posts: 178
Joined: 19-January 05
From: Switzerland
Member No.: 1396
Using LabVIEW Since:1998
LV:8.20 ,8.0.1 ,7.1.1
Switzerland Switzerland Switzerland


QUOTE (Aitor Solar @ Nov 13 2007, 01:26 PM) *
Umm. Open "update property.vi" and "update method.vi" and change the "VI Server:" text in both, since probably is also different in German. Follow the image guideline:

Attached Image


Saludos,
Aitor

My Picture looks almost the same...
VI Server is still VI Server...
Attached Image


EDIT: If I right click on a property node and klick on "select class" then Vi Server is written VI-Server...
So I entered VI-Server istead of VI Server...
This way, a lot of property/involke node can created using the SWB.

However I still get errors on some
property/involke nodes:
Application:Command Line Arguments
Application:Debug Name
etc...
Attached Image


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

Happy Wiring! (User defined "Swiss Wire Class" for neutral data only!!!)


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Tomi Maila
post Nov 14 2007, 02:13 PM
Post #8


Drawing Tool - LVOOP example application
*****

Premium Member
Posts: 1168
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 Aitor,

Thanks for the great scripting tool! As you already know I've written a similar tool for my private use. However your tool is more polished so I'm not wanting to push my tool forward to compete with your tool but rather help you to include the best of both worlds. I'd like to see a few features added into your tool.

1) Regular expression filtering of class hierarchy while typing into a search field (see Draw Hierarchy.vi and Filter Hierarchy.vi in my tool)
2) Regular expression filtering of methods and properties while typing into a search field (See Filter Items.vi in my tool)
3) Ability to automatically "reverse engineer" classes, properties and methods for new LabVIEW versions when the tool is started in a LabVIEW version for which there is not yet configuration files generated (I've not implemented this so...)

You can also make the start-up faster by using VIs as configuration files. You know how to script a VI with certain default values on the front panel indicators. Such VIs can function as very fast and extensible configuration files. Simply either 1) open the VI and read the front panel controls or 2) open a reference to the VI and call it dynamically. The latter method is faster but requires a little more work if connector pane is changed as old connector pane formats need to be supported.

Cheers,

Tomi
Attached File(s)
Attached File  Scripting_Tool.llb ( 424.05K ) Number of downloads: 213
 

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



Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Aitor Solar
post Nov 15 2007, 09:36 AM
Post #9


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 (martin@aerodynamics @ Nov 14 2007, 12:30 PM) *

Attached Image


Error 1077 is usually associated to a wrong property name. Are you sure all the German names you put are correct?


QUOTE (Tomi Maila @ Nov 14 2007, 03:13 PM) *
1) Regular expression filtering of class hierarchy while typing into a search field (see Draw Hierarchy.vi and Filter Hierarchy.vi in my tool)
2) Regular expression filtering of methods and properties while typing into a search field (See Filter Items.vi in my tool)


Yes, the search capability should be heavily improved. I like the approach of your tool, though I still like a global search function because sometimes you just don't know where to look.

I also left out the possibility of creating constants, something your tool has. It was for the sake of simplicity, since you can create a constant from any property ot method, but in fact the question is more complicated if we include strict constants. It happens some classes (like the Vision Image Display) are in fact a strict sub-type of another class, allowing properties and methods the original (un-strict) class doesn't have. But for now I don't see the point of digging that way.

QUOTE (Tomi Maila @ Nov 14 2007, 03:13 PM) *
3) Ability to automatically "reverse engineer" classes, properties and methods for new LabVIEW versions when the tool is started in a LabVIEW version for which there is not yet configuration files generated (I've not implemented this so...)


Umm, do you mean the tool should automatically find all the possible classes, properties and methods? I'm afraid that's not an easy task and is far beyond the scope of this simple tool. Generation of the classes tree can be automatic (and fast) through scripting, but usually crashes labview. Finding the correct properties and methods names is more difficult and I prefer not to elaborate on that. I don't know if you have find an immediate way for recovering all that info, I haven't sad.gif .

QUOTE (Tomi Maila @ Nov 14 2007, 03:13 PM) *
You can also make the start-up faster by using VIs as configuration files. You know how to script a VI with certain default values on the front panel indicators. Such VIs can function as very fast and extensible configuration files. Simply either 1) open the VI and read the front panel controls or 2) open a reference to the VI and call it dynamically. The latter method is faster but requires a little more work if connector pane is changed as old connector pane formats need to be supported.


Well, the startup seems really fast for me but, I have understood correctly, with the approach you propose, for adding or changing a property would be necessary to open the VI, change the value and making it the default value. I thing the txt files are much more versatile and user-configurable.

Saludos,
Aitor


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Tomi Maila
post Nov 15 2007, 11:58 AM
Post #10


Drawing Tool - LVOOP example application
*****

Premium Member
Posts: 1168
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


Aitor, I'll reply to you privately. Sorry folks...

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



Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
martin@aerodynam...
post Nov 20 2007, 07:21 AM
Post #11


Very Active
***

Member
Posts: 178
Joined: 19-January 05
From: Switzerland
Member No.: 1396
Using LabVIEW Since:1998
LV:8.20 ,8.0.1 ,7.1.1
Switzerland Switzerland Switzerland


QUOTE (Aitor Solar @ Nov 15 2007, 10:36 AM) *
Error 1077 is usually associated to a wrong property name. Are you sure all the German names you put are correct?


Most property / involke node work with the English names, so I have not yet started to translate all the txt files...

I probably "only" have to figure out the german names of the property / involke node which cause an error...

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

Happy Wiring! (User defined "Swiss Wire Class" for neutral data only!!!)


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ton
post Sep 4 2008, 06:13 PM
Post #12


CCT It
*****

Premium Member
Posts: 1331
Joined: 13-June 05
From: Woerden, Netherlands
Member No.: 2399
Using LabVIEW Since:2001
LV:8.5.1 ,6.1 ,8.2.1
Netherlands hol_utrecht Nothing Selected My Blog My Gallery


QUOTE (martin@aerodynamics @ Nov 20 2007, 09:21 AM) *
Most property / involke node work with the English names, so I have not yet started to translate all the txt files...

I probably "only" have to figure out the german names of the property / involke node which cause an error...

Whoaw, that I missed this tool.
The XControl Inheritance toolkit has a VI (listprops__XIE.vi) which has a property node of the type 'property node' which returns all possible strings under 'All props[]'.
Here's the screen shot:
Attached Image

Maybe this can help you.

Ton

--------------------
Certified LabVIEW Developer
Shouldn't you be programming a Code Repository solution?


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

Reply to this topicStart new topic