Jump to content


Photo
- - - - -

[CR] Vi, Vit, Ctl Icon and Description Editor


  • Please log in to reply
3 replies to this topic

#1 Michael Aivaliotis

Michael Aivaliotis

    MindFreak

  • JKI
  • 2,662 posts
  • Version:LabVIEW 2012
  • Since:1994

Posted 26 October 2006 - 04:50 AM

This is a nice tool. It will help the LAVA members edit their VI's before submission to the Code Repository! Hey, we're dogfooding :o .

Some issues and suggestions:
  • When I click load directory, the second time, it doesn't remember my previous folder I navigated too. It would be nice if it took me to where I was before.
  • During navigation of the tree I got a pop-up error. I forgot to get a screen capture. The message said something about not being able to find the file: VI Path: \\windy1\wsw\LabVIEW\SW\Projekte\DIVERSES\ICON-Editor\SERVER-ICON-Editor.vi
  • During text entry, there is no limit of the body fields. This causes the Icon to compress when too much text is entered. I recommend an autocalculation and a text entry hardstop if too long.

    Posted Image

  • When editing thr VI description, it would be nice to be able to resize the window.
  • When editing thr VI description, it would be nice to have a button that when you select a group of text you click a button "Bold" and it would wrap the text in <B></B> tags automatically.
  • The Reload old Icon does not work if you edit the icon, save it then doubleclick the VI to open it. You cannot reload old icon anymore. It's gone?
  • It would be nice to have the ability to apply the colorset to a group of VI's at once.
That's it for now. Keep up the excellent work!
Thank You
Michael Aivaliotis

VI Shots

#2 martin@aerodynamics

martin@aerodynamics

    Very Active

  • Premium Member
  • 69 posts

Posted 21 October 2006 - 01:10 AM

Posted Image

File Name: Vi, Vit, Ctl Icon and Description Editor
File Submitter: martin@aerodynamics
File Submitted: 20 Oct 2006
File Updated: 13 Dec 2006
File Category: LabVIEW Development Environment

RUAG ICON Editor v1.7 - 24.11.2006
Copyright © 2006, Martin Hasler
----------------------
This is the currend RUAG ICON Editor for LabVIEW 8.x
Have a lot of Fun with LabVIEW :wub:

Author:
Martin.Hasler
martin.hasler@aerodynamics.ch :question:

Distribution:
This code was downloaded from:
http://forums.lavag.org/downloads.html

Description:
Copy the Files Icon.llb and RUAG-Icon-Editor.vi and description.txt into your LabVIEW 8.x/project/ Directory
If you start LabVIEW the next Time, the RUAG-ICON-Editor appears under LabVIEW Tools (Werkzeuge).

With the RUAG Icon Editor you can create or modify ICONS from Vi, Vit, Ctl and you can edit the Documentation. :star:
The information about the ICON will be saved into the VI-Documentation.


=> First: Click "Load Directory"
=> Click "Tree-Control" to choose your VI to modify.
=> You can modify the colorsets by Editing the Color_Set.vi in the Icon.llb. Do not forget to click on: Save current values as default.

=> DO NOT USE THE FOLLOWING SINGN IN THE TITLE OR BODY!! § :!:

=> Dobble -click your VI in the "Tree-Control" to open the VI.

Support:
If you have any problems with this code or want to suggest features:
http://forums.lavag....?showtopic=4471

Version History:
V1.0 The Original Version 1 was made by Pascal Helfenstein phelfens@fhzh.ch
V1.1 You can reload the old Icon.
You can Choose Color Sets.
Help button.
Changes will be saved into the VI documentation.
V1.2 You can Edit Icons in llb
You can Edit Icons from *.vit, *.ctl, *.vi
V1.3 The Pictures (New Icon, Old Icon etc.) are bigger
Bug Fixed that you have to press "Write Icon" twice for Vi's which are in a Project.
V1.4 More Documentation, (BD & FP) "Straighten the Code"
V1.5 "Edit Documentation" included
V1.5.1 Rearranged all Buttons. If you edit the Icon the first time, text=black, Title and Body= white
V1.6 If the entered ICON text is too long it will be cutted automatically.
Automatically add and remove Tags < B > and </B> to the Description. (Preview included)
Rearranged Buttons
V1.7 An Indicator is blinking and the cursor is set to busy while the tree control is updated
Bug solved with old tree control paths
Automatically generate a Description with Username, Date, CTL Inputs and Outputs if they are connected to the connector pane (including their description)
Open Frontpannel and Blockdiagramm by right-click to the Tree CTL or LLB-Content
Frontpannel optimiced fot 1024*768 screen
License:
Creative Commons Attribution 2.5 License

Click here to download this file

#3 martin@aerodynamics

martin@aerodynamics

    Very Active

  • Premium Member
  • 69 posts

Posted 09 November 2006 - 07:23 AM

This is a nice tool. It will help the LAVA members edit their VI's before submission to the Code Repository! Hey, we're dogfooding :o .
...
That's it for now. Keep up the excellent work!


Hello Michael
Thanks for your suggestions.
Update: Following suggestions are implemented and the bug with the tree control is solved (Version 1.7)
* During navigation of the tree I got a pop-up error. I forgot to get a screen capture. The message said something about not being able to find the file: VI Path: \\windy1\wsw\LabVIEW\SW\Projekte\DIVERSES\ICON-Editor\SERVER-ICON-Editor.vi
* During text entry, there is no limit of the body fields. This causes the Icon to compress when too much text is entered. I recommend an autocalculation and a text entry hardstop if too long.
Attached Image
* When editing thr VI description, it would be nice to be able to resize the window.
* When editing thr VI description, it would be nice to have a button that when you select a group of text you click a button "Bold" and it would wrap the text in <B></B> tags automatically.


*When I click load directory, the second time, it doesn't remember my previous folder I navigated too. It would be nice if it took me to where I was before.
=> In our company we call the Icon editor over a vi-server call (SERVER-ICON-Editor.vi) from another vi from "TOOLS" so I can modify and update the ICON-Editor and I don't need to distribute it to all developers (Windows & Linux). Because of that, I don't like to save the last path, since it is not useful for us.
=>When I start the ICON Editor, the "startfolder" is always the folder where I have saved the last new vi. I think this is very useful because you usually have to edit only new Vi-ICONS...
=>But I could implement a "LAVA Edition"...

*The Reload old Icon does not work if you edit the icon, save it then doubleclick the VI to open it. You cannot reload old icon anymore. It's gone?
=> The reload old Icon works only as long as you don't click again in the tree control...

*It would be nice to have the ability to apply the colorset to a group of VI's at once.
=>Maybe in future...
=>another thing for future is an option to copy a part of an ICON (Header /Body) and paste it to the current vi...

cheers :beer:

#4 martin@aerodynamics

martin@aerodynamics

    Very Active

  • Premium Member
  • 69 posts

Posted 24 November 2006 - 07:37 AM

The New ICON Editor 1.7 is now available!

New features:
"automatic text cutter" => The ICON text will automatically cutted if there are to much characters :thumbup:

You can automatically add and remove Tags (<B> </B>) in the Description Editor. (The text between the Tags will be written BOLD) :thumbup:

An Indicator is blinking and the cursor is set to busy while the tree control is updated

Bug solved with old tree control paths

Frontpannel optimiced fot 1024*768 screen

Open Frontpannel and Blockdiagramm by right-click to the Tree CTL or LLB-Content

Automatically generate a Description with Username, Date, CTL Inputs and Outputs if they are connected to the connector pane (including their description)

Howto make a automatic Description?
1. Start the Icon Editor
2. Open a Directory
3. Select a Vi

Posted Image

4. Click Edit Documentation

Posted Image

5. Click New Documentation

=> There will be a new Documentation generated based on the description.txt File located beside the ICON.llb File
Example:

RUAG Aerospace
Center Aerodynamics
CH-6032 Emmen
www.ruag.com
********************
Version: 0.0
Date: <DATE> (will be replaced with the actual date )
State: In Progress / Finished
Developer: <NAME> (will be replaced with the current LabVIEW Username)

FUNCTION
(Explain the function of the vi)

<Input>
Between these thags it copies all Vi- Input CTL which are connected to the connector pane
</Input>

<Output>
Between these thags it copies all Vi- Output CTL which are connected to the connector pane
</Output>

COMMANDS
(Expain here the commands of the vi (INIT: Initialize...; START: ....)

PRE-CONDITIONS
(Place here the Pre-Conditions of the vi)

POST-CONDITIONS
(Place here the Post-Conditions of the vi)

ERROR HANDLING
(Place here information about the Error Handling (This vi will executed/not executed if error in has an error)...


Posted Image


NOTE: Do not Remove the <Input></Input><Output></Output> Tags!!


If you have changed some connectors etc. just click Update CTL Description.

If you have an old description you can add the <Input></Input><Output></Output> Tags by selecting the place and then by right Click (add Input Tags / add Output Tags) In the current version you need always all tags...