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
> LabVIEW Configuration Key Template
Michael_Aivaliot...
post May 9 2007, 08:54 AM
Post #1


Confucius say, Man with tight trousers is pressing his luck.
Group Icon
*****

Admin
Posts: 2304
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


It took a bit of learning but I finally spit out a template that we can use for defining the LabVIEW Configuration File keys. The template is located here:

Template:Labviewconfigurationkey

Here is an example page that uses the above template. You can click the edit button to see the code:

Labviewconfigurationkeysandbox

We need to go back and edit the old pages created by crelf to conform to the new template. There is no rush. On the other hand, moving forward, we must use this template for future entries. I think I may be missing a datatype. Please comment on the template in this thread.

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


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Ad
post May 9 2007, 08:54 AM
Post #















Tags
This content has not been tagged yet
Go to the top of the page
Quote Post
JDave
post May 9 2007, 02:21 PM
Post #2


Extremely Active
****

Premium Member
Posts: 426
Joined: 2-February 05
From: Southern California
Member No.: 1519
Using LabVIEW Since:2004
LV:8.20 ,7.1.1 ,8.0.1
United States Peru us_california


That looks really good! I have a few questions, though. What about using the control terminal image for the data types? I really liked that idea. And if it ever was changed to display the images, would all the entries that already use the template automatically get changed (like a typedef shifty.gif )? And finally, Scott Hannah's list of configuration keys goes back to LV3. How would I change the template to reflect this?

Thanks so much for working so hard on the wiki. This is going to be THE place to go for LabVIEW knowledge.

David


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Michael_Aivaliot...
post May 9 2007, 05:35 PM
Post #3


Confucius say, Man with tight trousers is pressing his luck.
Group Icon
*****

Admin
Posts: 2304
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


QUOTE (dsaunders @ May 9 2007, 07:21 AM) *
What about using the control terminal image for the data types? I really liked that idea. And if it ever was changed to display the images, would all the entries that already use the template automatically get changed (like a typedef shifty.gif )?
Yes, the articles would get changed automatically. This is the benefit of a template (like a typedef).
QUOTE (dsaunders @ May 9 2007, 07:21 AM) *
And finally, Scott Hannah's list of configuration keys goes back to LV3. How would I change the template to reflect this?
I just fixed it to handle LabVIEW 3.x. Enjoy.

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


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
JDave
post May 9 2007, 07:22 PM
Post #4


Extremely Active
****

Premium Member
Posts: 426
Joined: 2-February 05
From: Southern California
Member No.: 1519
Using LabVIEW Since:2004
LV:8.20 ,7.1.1 ,8.0.1
United States Peru us_california


Sweet! thumbup1.gif


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
JDave
post May 10 2007, 11:25 PM
Post #5


Extremely Active
****

Premium Member
Posts: 426
Joined: 2-February 05
From: Southern California
Member No.: 1519
Using LabVIEW Since:2004
LV:8.20 ,7.1.1 ,8.0.1
United States Peru us_california


I played around with the configuration key template a bit, replacing a the first few keys in the Block Diagram section. Here are my observations.
  • the template is easy to use thumbup1.gif
  • the template shows up in the page as an editable 'section' but if you click to edit just the section it comes up blank
  • If you leave earlier entries blank in the LabVIEW version, it adds unneeded spaces
  • the template is not so easy to edit -- now I understand your first post about learning better
I was playing around with editing the template because there was a dangling comma off the last LabVIEW version. Not a big deal, but I tried to see about removing it. Looking at the way the template is built I could remove it off of the last LabVIEW version entry, which was good enough. So I changed my numbering so that the last LabVIEW version corresponded to 8.x. This exposed the spaces issue that is seen on the [[LabVIEW ini File.Block Diagram]] page.

Looking at the LabVIEW versions, I got to thinking that the template might be more intuitive if changed slightly. The current version looks like

| LV1 = 3
| LV2 = 4
| LV3 = 5
| LV4 = 6
| LV5 = 7
| LV6 = 8

I think it would be clearer as

| LV3 = x
| LV4 = x
| LV5 = x
| LV6 = x
| LV7 = x
| LV8 = x

Then the template logic would be a little clearer and the numbers wouldn't look like they are offset. You could still have a custom entry as

| LV3 = 8.20

to indicate the easter eggs that only came with version 8.20 and other version specific keys.


Just some thoughts as I was playing with the template.
David


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Michael_Aivaliot...
post May 11 2007, 07:22 AM
Post #6


Confucius say, Man with tight trousers is pressing his luck.
Group Icon
*****

Admin
Posts: 2304
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


Actually, the proper usage of the template is like this:
CODE
{{ labviewconfigurationkey
     | keyname =
     | example =
     | datatype =
     | description =
     | permitted_values =
     | default =
     | LV1 =
     | LV2 =
     | LV3 =
     | LV4 =
     | LV5 =
     | LV6 =
     | OS1 =
     | OS2 =
     | OS3 =
     | OS4 =
     | notes =
     }}

You just fill in the section to the right of the "=". If you don't need a certain row, just delete it. For example:
CODE
{{ labviewconfigurationkey
| keyname =
| example =
| datatype =
| description =
| permitted_values =
| default =
| LV1 =
| OS1 =
| notes =
}}

You cannot use, for example, (| LV3 = x). Templates cannot work that way. trust me, it's complicated.

A blank section edit is a bug but it cannot be fixed. The best thing is to NOT use section edit. I just added feature to hide section edit when using this template. I don't think this is a big deal.

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


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
JDave
post May 11 2007, 02:43 PM
Post #7


Extremely Active
****

Premium Member
Posts: 426
Joined: 2-February 05
From: Southern California
Member No.: 1519
Using LabVIEW Since:2004
LV:8.20 ,7.1.1 ,8.0.1
United States Peru us_california


QUOTE (Michael_Aivaliotis @ May 11 2007, 12:22 AM) *
Actually, the proper usage of the template is like this:
...
You just fill in the section to the right of the "=". If you don't need a certain row, just delete it. For example:
...
You cannot use, for example, (| LV3 = x). Templates cannot work that way. trust me, it's complicated.

A blank section edit is a bug but it cannot be fixed. The best thing is to NOT use section edit. I just added feature to hide section edit when using this template. I don't think this is a big deal.

I don't think it is a big deal either; I was just trying to understand the template better before using it in all of the config keys.

Thanks for clarifying, and I do trust you that its complicated. I tried to make what I thought were minor modifications and weird things started happening. Thanks again for developing this template!!


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

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   3 guy 6874 21st May 2003 - 09:59 PM
Last post by: Mark Hanning-Lee
No New Posts   5 JackHamilton 6485 12th August 2005 - 07:27 AM
Last post by: rolfk
No New Posts   1 seckley 4925 20th December 2002 - 04:36 AM
Last post by: Michael_Aivaliotis
No New Posts   0 Michael_Aivaliotis 4400 20th May 2003 - 09:10 PM
Last post by: Michael_Aivaliotis


Fast ReplyReply to this topicStart new topic

 




Time is now: 30th August 2008 - 02:33 AM