Jump to content

Block Diagram cleanup failure


Recommended Posts

This is a latent cross-post from the NI forums, but I figure that the LAVA readership has a higher density of real experts than the NI site.

In the course of working the Scripting Tools library, I've manged to generate a block diagram that is obviously in need of some cleanup and for which, when I press Ctrl-U, the cleanup tool beeps at me and does nothing else.

Can anyone shed any light on what code constructus might cause the BD cleanup tool to fail like this ?

I've attached a screen shot of the vi in question - if you want to look at the code then just check out the current LAVACR svn repository (8.6.x folder) from http://code.google.com/lavacr

The problem area is the in-place structure between the 2 tunnel property nodes (vi-scripters will recognise this as turning on case insensitive selection in a case structure).

post-3951-124699182404_thumb.png

Link to comment

This is a latent cross-post from the NI forums, but I figure that the LAVA readership has a higher density of real experts than the NI site.

In the course of working the Scripting Tools library, I've manged to generate a block diagram that is obviously in need of some cleanup and for which, when I press Ctrl-U, the cleanup tool beeps at me and does nothing else.

Can anyone shed any light on what code constructus might cause the BD cleanup tool to fail like this ?

I've attached a screen shot of the vi in question - if you want to look at the code then just check out the current LAVACR svn repository (8.6.x folder) from http://code.google.com/lavacr

The problem area is the in-place structure between the 2 tunnel property nodes (vi-scripters will recognise this as turning on case insensitive selection in a case structure).

It could be that the Cleanup Tool does not know the inplace structure. In this particular case the inplace structure is completely useless anyhow. A simple Replace Array Subset will do the same with no performance degradation of any kind I could think of.

Rolf Kalbermatter

Link to comment

It could be that the Cleanup Tool does not know the inplace structure. In this particular case the inplace structure is completely useless anyhow. A simple Replace Array Subset will do the same with no performance degradation of any kind I could think of.

Further playing around suggests that there is some badness creeping into LV's compilation - copying and pasting the main error case structure to a new diagram can let me run the cleanup ok.

You're quite right about the inplaceness structure - it's rapidly becoming my favourite inappropriately used LabVIEW structure :cool:

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.