Go to Post 1/4" baltic birch plywood is most of our metal. - z_beeblebrox [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-02-2011, 19:20
Clayton Yocom's Avatar
Clayton Yocom Clayton Yocom is offline
Programming Mentor
FRC #0027 (RUSH)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Clarkston, MI
Posts: 86
Clayton Yocom will become famous soon enoughClayton Yocom will become famous soon enough
Send a message via AIM to Clayton Yocom Send a message via MSN to Clayton Yocom Send a message via Yahoo to Clayton Yocom
Clean up tool w/ "Open 4 Motors"

I've noticed when using the "cleanup tool" (as I will be referring to it) with polymorphic(?) vi's, the option box to change the type of vi (such as Jaguar/Victor in this case) does not extend the box's physical shape therefore lets the option box overlap things.

See this example.

Quite annoying when trying to make things look pretty . Not sure where/how to post this "bug" of sorts, so any insight would be greatly appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 07-02-2011, 19:42
Wolfgang Wolfgang is offline
Registered User
AKA: Mehmed
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2010
Location: Denver
Posts: 47
Wolfgang is an unknown quantity at this point
Re: Clean up tool w/ "Open 4 Motors"

Just don't use the clean up tool. We don't, because we are not sure if the code we have is perfect. If you use the cleanup tool, the biggest change is that your code is compacted into small space, making editing the code difficult. Don't use the clean up tool.
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2011, 20:06
Clayton Yocom's Avatar
Clayton Yocom Clayton Yocom is offline
Programming Mentor
FRC #0027 (RUSH)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Clarkston, MI
Posts: 86
Clayton Yocom will become famous soon enoughClayton Yocom will become famous soon enough
Send a message via AIM to Clayton Yocom Send a message via MSN to Clayton Yocom Send a message via Yahoo to Clayton Yocom
Re: Clean up tool w/ "Open 4 Motors"

The cleanup tool is decent if your lazy and dislike using a touch-pad (without a usb mouse in the shop) XD

The biggest reason we use it, personally, is because when we think up this code, we don't really make it readable for the rest of the programming students that weren't there. I am stressing to our other programming students that it is important to understand every bit of code that goes onto the robot, so that when something goes wrong, you know what went wrong so you can quickly identify the problem and fix it, wither it be mechanical, electrical, or within the programming. (and to teach them so they get the same experiance into LabVIEW as everyone else.)
Reply With Quote
  #4   Spotlight this post!  
Unread 07-02-2011, 22:52
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Clean up tool w/ "Open 4 Motors"

Quote:
Originally Posted by Wolfgang View Post
Just don't use the clean up tool. We don't, because we are not sure if the code we have is perfect. If you use the cleanup tool, the biggest change is that your code is compacted into small space, making editing the code difficult. Don't use the clean up tool.
The thing is, it also expands code. What I generally do is use the tool, then just throw in another vi in the middle, wire it up by feel and then use it again and see if the wires go to the right places.

If I wanted to add another vi without using the tool, I'd have to move all of the code on one side over some more and make more space.

And yes, the ignorance of the polymorphic vis is annoying.
Reply With Quote
  #5   Spotlight this post!  
Unread 07-02-2011, 23:49
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
Re: Clean up tool w/ "Open 4 Motors"

Hello community,
In my daily LabVIEW work we generally don't use the clean-up tool. (Sometimes called the block diagram scrambler, because of the behavior when it was first introduced.) It works fairly well for small amounts of code. So new after a bit of tuning in the options page, I will sometimes use it after creating a new subVI. It helps promote coding standards. It was once used on a very, very large VI, and it was not pretty. (Inadvertently saved too before our use of source control) In the newer versions of LabVIEW this tool has more options. Chunks of code can be excluded from the clean-up, and the clean-up can be done on small selections of code instead of the whole VI. (FRC has stuck to LV 8.6, which excludes the new options.)
__________________
Mike B
Reply With Quote
  #6   Spotlight this post!  
Unread 08-02-2011, 09:14
Doug Norman's Avatar
Doug Norman Doug Norman is offline
Registered User
no team (National Instruments)
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Austin, TX
Posts: 134
Doug Norman will become famous soon enoughDoug Norman will become famous soon enough
Re: Clean up tool w/ "Open 4 Motors"

Quote:
Originally Posted by Wolfgang View Post
Just don't use the clean up tool. We don't, because we are not sure if the code we have is perfect. If you use the cleanup tool, the biggest change is that your code is compacted into small space, making editing the code difficult. Don't use the clean up tool.
In case you aren't aware. On the LabVIEW diagram you can Ctrl drag to grow space. By that I mean hold down the Ctrl key and drag your mouse. You can also Ctrl+Z to undo if you don't like how it moves things.
__________________
Doug Norman
National Instruments
Reply With Quote
  #7   Spotlight this post!  
Unread 08-02-2011, 09:50
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,713
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Clean up tool w/ "Open 4 Motors"

I use the cleanup diagram tool all the time when I'm looking for errors in code posted by other people.

Often the code is so much spaghetti that it's hard to follow as masses of wires disappear off the screen, cross behind other icons, and get spread to all corners of the block diagram.

It doesn't have to be permanent if you don't like what it does.
As Doug said, cntl Z resets everything.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #8   Spotlight this post!  
Unread 08-02-2011, 20:06
Clayton Yocom's Avatar
Clayton Yocom Clayton Yocom is offline
Programming Mentor
FRC #0027 (RUSH)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Clarkston, MI
Posts: 86
Clayton Yocom will become famous soon enoughClayton Yocom will become famous soon enough
Send a message via AIM to Clayton Yocom Send a message via MSN to Clayton Yocom Send a message via Yahoo to Clayton Yocom
Re: Clean up tool w/ "Open 4 Motors"

Back on topic, is there a way to change the way it handles polymorphic VI's or is it on the "known issues" list or something? Just wana know how to handle small glitches in LabVIEW from now on.
Reply With Quote
  #9   Spotlight this post!  
Unread 11-02-2011, 21:41
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Clean up tool w/ "Open 4 Motors"

My suspicion is that the overlapped poly selectors is more of a bug than anything else. If you open Tools>>Options and go to the Diagram Cleanup page, you can experiment with bigger values for Horizontal, and perhaps manual tuning, but I suspect that this was an oversight since 8.6 was the first official release of the layout feature. I expect it will be better next year.

Greg McKaskle
Reply With Quote
  #10   Spotlight this post!  
Unread 11-02-2011, 22:02
Clayton Yocom's Avatar
Clayton Yocom Clayton Yocom is offline
Programming Mentor
FRC #0027 (RUSH)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Clarkston, MI
Posts: 86
Clayton Yocom will become famous soon enoughClayton Yocom will become famous soon enough
Send a message via AIM to Clayton Yocom Send a message via MSN to Clayton Yocom Send a message via Yahoo to Clayton Yocom
Re: Clean up tool w/ "Open 4 Motors"

Thanks Greg, that answers everything I had questions about. We'll check out the Diagram cleanup options to make it fit better, because it is quite annoying :/

Thanks again everyone!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:12.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi