Go to Post Ah, the FIRST Community, aka The Land of Little Patience :) - Jessica Boucher [more]
Home
Go Back   Chief Delphi > Technical > National Instruments LabVIEW and Data Acquisition
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 06-09-2008, 12:19
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Best Practice for Posting LabView VIs?

Following up on this thread, does NI have any comments on how to best share VI code and information?

It seems to me that the Jing Project mentioned in that thread is a nice way to demonstrate a VI's function, and images are a nice way to show what it all looks like.... but what I am seeking is a way to show a VI and explain something about how it works.

I suppose that sharing a well-commented VI - by posting it CD Media perhaps? - is likely the best practice, but I'd like to hear from the community on this.

Don
__________________

I am N2IRZ - What's your callsign?

Last edited by DonRotolo : 06-09-2008 at 12:21.
Reply With Quote
  #2   Spotlight this post!  
Unread 09-09-2008, 10:22
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,752
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: Best Practice for Posting LabView VIs?

Personally, I think a description of the code, commonly with an image is a good approach. If you want people to run it, then attach the VI. The VI may have dependencies, but often those are easy to stub out to focus on the question or issue. And in fact, that stubbing and prepping the code to submit will often add insight as to what the issue was in the first place and avoid the dreaded doh posts.

I haven't had good experiences with movies of VIs. Maybe that will change.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 09-09-2008, 10:43
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,708
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Best Practice for Posting LabView VIs?

I have a feeling that some sort of looping movie is going to be a better option than a static picture for many FRC VIs. Specifically because I can't think of a better option for displaying the frames of a case structure or stacked sequence. Your other options are separate pictures for each frame, or a handmade separate picture containing all the frames. Besides posting the VI itself, a movie seem the best option.

Of course, if you're intending to post code for a complete robot and not a subVI or code fragment, then you should ZIP up or otherwise package the entire project and send that instead.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #4   Spotlight this post!  
Unread 09-09-2008, 11:28
Russ Beavis Russ Beavis is offline
Registered User
no team
 
Join Date: Nov 2005
Location: Manchester, NH - DEKA R&D Corp.
Posts: 341
Russ Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond repute
Re: Best Practice for Posting LabView VIs?

File -> Print -> VI Documentation -> then select Block Diagram + Hidden Frames + whatever other options you want.

Print it to an HTML file (mostly a set of links to PNG images) and then upload to ChiefDelphi. Hopefully we can get someone to allow .html extensions?

That prints all of the frames just fine but isn't really super navigable.

Russ
Reply With Quote
  #5   Spotlight this post!  
Unread 10-09-2008, 23:29
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Best Practice for Posting LabView VIs?

Quote:
Originally Posted by Greg McKaskle View Post
Personally, I think a description of the code, commonly with an image is a good approach.
I take it you mean a text description, explaining what I want to accomplish and how I did it - right?
Quote:
Originally Posted by Russ Beavis
That prints all of the frames just fine but isn't really super navigable.
My main interest is showing how stuff is configured behind the icon.

For example, I created a VI (see first post above for a link) that takes an analog 0-5v input, limits it and maps it to a curve (actually an interpolated curve based on a table), scales it and displays it. The idea is to show how an analog joystick input can be mapped to eliminate a victor dead zone while increasing responsiveness where it matters, all while ensuring PWM outputs between 0 and 254. (Yes, I know I can scale it and map it in one block, making the multiplication block redundant, but I wanted to show one step at a time)

I can print out the scaling and mapping block (one attachment), but how can I show the table (second attachment) that lives within it? That is what's important, not the 'outside' view of the block.

This example is a trivial case - I think - and so one image shows the table. But what about when these blocks get a little bit 'advanced' - will I need to paste a half-dozen pictures to get my point across? How about when the code is for the whole robot?

Has anyone tried to open the VI that I posted? Can you see the table?

I think a good answer to this issue will benefit the whole community.

To anyone who uses LabView professionally: How do you share LV Code?

Don
Attached Thumbnails
Click image for larger version

Name:	VI Sample.gif
Views:	121
Size:	14.8 KB
ID:	6808  Click image for larger version

Name:	VI Table.gif
Views:	104
Size:	15.3 KB
ID:	6809  
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #6   Spotlight this post!  
Unread 13-09-2008, 22:12
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,752
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: Best Practice for Posting LabView VIs?

Yep. I mean a textual description. If it is a question looking for input, the most valuable info is often the assumptions and goals, then the approach, then if it benefits things, the picture of the code or the VI.

If it is an answer to a question, it often involves a smart-alec comment, overly long background, and finally a description of the solution or a picture of the code that implements it.

Your question about professional usage is a good one. If you go to the NI forums, you'll be able to observe the daily trade of VI info. I qualify as a professional user, technically, but I'm also privy to lots of internal info. So up until a few years ago, I was often the one doling out the answers. There are a few posts with my name on them.

Perhaps things are changing, but to reiterate my answer, much of the discussion was textual, describing the math or science, not necessarily focussing on the syntax of the language. If it involves performance or syntax, I think little beats a VI simplified to focus on the topic. People don't usually post the code to their entire hydro-electric plant control or electron microscope just isn't cool, but fortunately, most elements in LV are pretty modular, and you can often isolate things without too much work. Again, that isolation often points out the problem before you even post the question.

Assuming most apps will be based upon the robotics from WPI, the team code should actually be pretty small. It will of course be highly coupled to the HW setup. I guess we'll see as things get going.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 14-09-2008, 12:35
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Best Practice for Posting LabView VIs?

OK Greg, that makes a lot of sense. I was mostly focused on displaying the specific syntax and settings so that inexperienced users could easily replicate what was done, rather than explaining the concept.

So, it seems that explaining the concept is best done with words, and showing the code itself is best done by posting the VI (well-commented of course), as is done in the NI forums.

OK, I think I have consensus with myself.

Don
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #8   Spotlight this post!  
Unread 15-10-2008, 16:27
ALICIA21 ALICIA21 is offline
Registered User
no team
 
Join Date: Oct 2008
Location: usa
Posts: 1
ALICIA21 is an unknown quantity at this point
Re: Best Practice for Posting LabView VIs?

Quote:
Originally Posted by Don Rotolo View Post
Following up on this thread, does NI have any comments on how to best share VI code and information?

It seems to me that the Jing Project mentioned in that thread is a nice way to demonstrate a VI's function, and images are a nice way to show what it all looks like.... but what I am seeking is a way to show a VI and ready made frames explain something about how it works.

I suppose that sharing a well-commented VI - by posting it CD Media perhaps? - is likely the best practice, but I'd like to hear from the community on this.

Don


where can I find more info about this
Reply With Quote
  #9   Spotlight this post!  
Unread 09-04-2010, 22:37
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Best Practice for Posting LabView VIs?

I've seen some not-so-great methods of sharing a VI lately in the Programming forum.
Could this thread be copied into the Programming forum and stickied?

Thanks!

(If it's not up to standard, could you point me towards a set of standards to make a thread sticky-quality?)
__________________
-- Marshal Horn
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Posting LabView Code Easily? Greg Marra NI LabVIEW 17 25-11-2009 16:49
DAQmx VIs missing Barry Lazzer LabView and Data Acquisition 2 30-01-2007 13:06
Suggestion for posting... Billfred CD Forum Support 3 09-01-2005 16:18
Custom Dashboard code for LabVIEW ready for download. archiver 2001 3 24-06-2002 00:49
Posting need for help. nick reynolds General Forum 3 16-10-2001 08:05


All times are GMT -5. The time now is 20:07.

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