LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Copy icons between vi's in LV 2009

Solved!
Go to solution

ThSa wrote:

The official bug fixes will get released with LV 2010.

The ZIP file contains only fixes that are bowled already.

 

 

Tom


 

I can wait.

 

"...bowled already" a cricket term?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 11 of 22
(3,006 Views)
Oh sorry, bowled means that I have submitted the fixes on time for LV beta2.
Message 12 of 22
(3,004 Views)

ThSa wrote:

 

I will try to get the majority of the bugs fixed for the next LV release, but I can only fix those I know about. Hence, I am curious why it crashes when you navigate to a glyph/pick a glyph. What do I need to do to reproduce this crash?

 


My method to reproducing this was:

  1. Save As any subvi which contains an icon created in the new editor.
  2. Modify the subvi to suit, right click icon and select Edit Icon...
  3. At this stage the icon editor opens up and instantly deletes the User Layers (which is annoying because I wanted to keep some of them)
  4. You are, by default, shown the Glyphs tab. Select any glyph and it will crash.

Unfortunately (fortunately?), step 4 no longer causes crash! But step 3 still occurs, such that I lose my user content when trying to edit the icon. For example, this is my icon in the original subvi

profile1.jpg

 

But when I open the editor, this is what it gives me:

profile2.jpg

 

You can see that it's removed all my user content (except the text, obviously).

 

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 13 of 22
(2,999 Views)

Thoric,

 

I don't really have an explanation why it behaves like that.

Is the original subVI a *.vit?

 

Do you mind to post a VI that has this behavior, where the actual icon looks completely different than what the Icon Editor pulls from the VI.

 

Thanks

Message 14 of 22
(2,981 Views)

I've attached that exact subVI for you. It's nothing special, nor a template vi, just an ordinary File > New vi.

 

Thanks for looking at this!

 

 

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 15 of 22
(2,976 Views)

I think I know what happens.

The VI icon itself is different from the stored icon data (which is written by the icon editor itself). Can you check the icon editor properties if the option 'merger layers' is enabled or disabled pls.

 

Thanks!

Message 16 of 22
(2,965 Views)

ThSa wrote:

I think I know what happens.

The VI icon itself is different from the stored icon data (which is written by the icon editor itself). Can you check the icon editor properties if the option 'merger layers' is enabled or disabled pls.

 

Thanks!


Hi, sorry for late reply (GMT +0 over here in sunny UK)

The IE settings are unchecked for "merge all layers on commit".

Interestingly, for only a brief moment, the icon is correct, but it is very quickly replaced with what I show in the screenshot above. So the IE knows about the user layers, but very quickly decides to erase them?

 

 

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 17 of 22
(2,920 Views)
ThSa: If I set this to checked, will it mean I can edit the icon without losing the user content when I open it? Currently, I can't change the icon, or copy out the content, because it always removes those user layers when I open it up.
Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 18 of 22
(2,912 Views)

Actually, if you would have this box checked, the IE doesn't store any information with the VI, which means, that you would always get only one user layer which would be the VI icon itself.

Let me ask another question: Have you had a Beta version of LabVIEW installed on the machine or any other form of the Icon Editor which got pulled from the web somewhere?

Does it only happen on VIs that got saved by using 'Save as...' or does it happen with every VI?

 

 

 

Message 19 of 22
(2,886 Views)

Hi ThSa,

 

I did some experimentation for you.

I made a copy of that troublesome vi (Save Copy As), and it also had the same icon troubles. So I presume the problem is with the VI itself.

I created a whole new vi, and opened the editor to create a replica of the icon.

I first deleted the default icon from the User Layers list, then went to Text teb and entered PROFILE into the top field. This is what I got:

IE1.jpg

It appeared that IE created a new User Layer with a thick vertical line in it. So I deleted that, put spaces in the other three text fields (to push the word  PROFILE to the top) and created the other User Layers, as so:

IE2.jpg

I clicked OK, and saved the VI. The icon looks ok:

IE3.jpg

If I double click the icon to open IE, I see all the user layers intact 🐵

If I Save As, the new VI is also good - the icon has all the layers.

If I copy the icon to an empty vi by dragging and dropping, that also works but the new vi icon has only 1 layer that contains all the imagery combined into one.

 

So, I've been unable to replicate the problem of the original bad vi icon.

 

No - I've never had a Beta of LabVIEW on this machine. I know that because this was a clean install of Windows 7 about 6 months back and I've only put LV 2009, then SP1 on here. (I keep my Betas and past installations in VirtualBox Environments)

 

Is that helpful? I'm guessing not as I've not managed to replicate the problem...

 

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 20 of 22
(2,871 Views)