Go to Post Sometimes the best feeling doesn't come from watching yourself excel but rather from watching others excel. - kristenliz_28 [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 12-08-2008, 16:10
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,031
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Posting LabView Code Easily?

Is there an easy way to share code diagrams that doesn't involve attaching the VI? A VI requires software and it takes more time than I usually want to spend to launch LabView and look at someone's code.

Is there an easy way in LabView to capture an image of the current VI without having to crop it in Paint or Photoshop?

Is there a good way in vBulletin to share images other than just attaching them to posts? That works, but it's definitely harder than pasting some code in a code tag block.

This is going to be important with so many teams programming in LabView. Can we come up with some easy solutions for a Sticky thread?
Reply With Quote
  #2   Spotlight this post!  
Unread 12-08-2008, 19:32
whitetiger0990's Avatar
whitetiger0990 whitetiger0990 is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Earth
Posts: 157
whitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of light
Re: Posting LabView Code Easily?

Yup!
  1. Go to file File
  2. Hit "Print..."
  3. Hit "Next"
  4. Select "Icon, description, panel and diagram"
  5. Hit "Next "
  6. Select "HTML File"
  7. Hit "Next"
  8. Hit "Save..."
  9. Select a directory, this will create an html file and 3 images. Those images are what you want. =)

See example of what you get below.

*edits* Oh yeah, about sharing them out of attaching.. probably not. Unless you host them elsewhere and use image tags. But I think that's a bit harder than just attaching. Unless someone else has a better idea for that.
Attached Thumbnails
Click image for larger version

Name:	Untitled 1d.png
Views:	230
Size:	3.3 KB
ID:	6778  Click image for larger version

Name:	Untitled 1p.png
Views:	241
Size:	4.2 KB
ID:	6779  
__________________
print$q=chr(ord($q)+$1)while("7443-0201-8465130105-12-03135-82482113-06-7672-070208-0613-70"=~/(-?\d\d)/g);

Last edited by whitetiger0990 : 12-08-2008 at 19:42.
Reply With Quote
  #3   Spotlight this post!  
Unread 13-08-2008, 14:20
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Posting LabView Code Easily?

One thing to think about *attention Brandon*... With all of these labview images going up.... server space?

Imagine if you took every code segment ever posted on CD and replaced it with a good 500k-1MB image... Perhaps there is some kind of vBulletin plugin that can be installed to allow image uploads of this type to be stored on a DIFFERENT server, as to not clog up the main CD server.

Also, I did a search already, it would be nice to upload your .vi file, and have the forum convert it to an image on-the-fly. This way, it would render the image file for when you need to view it, but it isn't being permanently stored. No such thing exists (as far as I can find), but maybe we have a few vBulletin coders?

Jacob
Reply With Quote
  #4   Spotlight this post!  
Unread 13-08-2008, 15:50
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Posting LabView Code Easily?

Unfortunately, several labview structures can't be flattened to a picture easily, like case statements. Any solution would have to make the vi available.

The printing to html does make separate images for each item in the case statement. However, by the time you look at several images, you might as well just open the vi.

Last edited by Joe Ross : 13-08-2008 at 16:05.
Reply With Quote
  #5   Spotlight this post!  
Unread 13-08-2008, 16:40
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,031
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Exclamation Re: Posting LabView Code Easily?

Quote:
Originally Posted by Joe Ross View Post
The printing to html does make separate images for each item in the case statement. However, by the time you look at several images, you might as well just open the vi.
I strongly disagree. Most computers can view jpegs but many fewer can view VIs. Opening a vi requires expensive, hard to set up software. Some sort of animated image format would be vastly superior and even a series of flat images are still viewable on mobile devices (like the one I am writing this post on).

I think a combination of the pictures and the vi makes of easiest for someone else to help you.
Reply With Quote
  #6   Spotlight this post!  
Unread 13-08-2008, 17:18
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
Re: Posting LabView Code Easily?

While I can't help with converting it automatically when you upload the file(can't find any command line tools that can do that so far, if anyone knows of one, let me know...), I can help with server space...I'm working on a few other things as well, and I'll add this to the "to do" list...more info to come...
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...
Reply With Quote
  #7   Spotlight this post!  
Unread 13-08-2008, 17:28
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
Re: Posting LabView Code Easily?

Quote:
Originally Posted by whytheheckme View Post
One thing to think about *attention Brandon*... With all of these labview images going up.... server space?
We've got more space than we know what to do with ... space isn't an issue.
__________________
Brandon Martus
e-mail
Reply With Quote
  #8   Spotlight this post!  
Unread 13-08-2008, 22:06
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: Posting LabView Code Easily?

I'm not entirely sure if it is needed, but if someone responsible for the forum is interested in a tool to serve up images, that wouldn't be too hard as long as you can run LV on the server machine and plug it into a CGI. Get in touch.

Greg McKaskle
Reply With Quote
  #9   Spotlight this post!  
Unread 14-08-2008, 02:01
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: Posting LabView Code Easily?

What d'you know, someone already mentioned this at NI communities (I didn't know until just now).

http://decibel.ni.com/content/message/1721#1721
__________________
-- Marshal Horn
Reply With Quote
  #10   Spotlight this post!  
Unread 14-08-2008, 08:17
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: Posting LabView Code Easily?

I guess I've been on the receiving end of way too many movies watching someone write a diagram trying to demonstrate a bug. True, it has its uses, but most times, I ended up panning to the end, looking at a super grainy frame, and spotting the problem. So, the time to make the movie, time and space of the movie downloads, and time I spend watching their movie so I can make their diagram on my machine for experimenting, are all time I wish I had back.

But, the forty-seven second demo watching someone type into a text field almost convinced me I was wrong.

In other words, simplifying a VI to show the problem so that you can post a good succinct stand alone snippet of code that others can run, modify, learn from, and send back in an improved form, is my preferred way of discussing LV or C code. Screenshots are a good way to identify areas within the code and are sometimes enough. A movie has potential, but most of us don't have enough Spielberg in us to pull it off.

Greg McKaskle
Reply With Quote
  #11   Spotlight this post!  
Unread 14-08-2008, 14:24
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Posting LabView Code Easily?

Quote:
Originally Posted by kamocat View Post
What d'you know, someone already mentioned this at NI communities (I didn't know until just now).

http://decibel.ni.com/content/message/1721#1721
I really like this software. I just downloaded it, and installed it, and used it. It's beautiful and serves the purpose.

Thanks!

-Jacob
Reply With Quote
  #12   Spotlight this post!  
Unread 25-11-2009, 12:32
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: Posting LabView Code Easily?

Revisiting this thread...

Is anyone excited to be able to use the LV 2009 Snippet feature in FRC 2011?
__________________
-- Marshal Horn
Reply With Quote
  #13   Spotlight this post!  
Unread 25-11-2009, 12:58
Jeff Pahl's Avatar
Jeff Pahl Jeff Pahl is offline
likes to look at shiny things...
FRC #5148 (New Berlin Blitz)
Team Role: Engineer
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Waukesha, WI
Posts: 344
Jeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond repute
Re: Posting LabView Code Easily?

Quote:
Originally Posted by kamocat View Post
Is anyone excited to be able to use the LV 2009 Snippet feature in FRC 2011?
I would be, but in the Senior Mentor Conf Call last week, they said we are getting LV 8.6, not LV 2009

I'm hoping they were wrong....
__________________
Team 5148 - 2014 Wisconsin Regional Rookie All-Stars!!

Mentor: 1379: 2004-2008 / 2530: 2008-2013 / 2861: 2009 / 5148: 2014-??
Lead Robot Inspector: 10,000 Lakes '09 - '11 / Lake Superior '11-'12 / Northern Lights '13, '15 - '16 / Championship '09 - '12, '14 - '15
Attending/Inspecting 2017: TBD, Wisconsin, STL Championship

"Sometimes the questions are complicated and the answers are simple" -Dr. Seuss
Reply With Quote
  #14   Spotlight this post!  
Unread 25-11-2009, 13:03
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Posting LabView Code Easily?

Quote:
Originally Posted by Jeff Pahl View Post
I would be, but in the Senior Mentor Conf Call last week, they said we are getting LV 8.6, not LV 2009

I'm hoping they were wrong....
That's why he said 2011, not 2010...

Here's more info on the snippets

Last edited by Joe Ross : 25-11-2009 at 13:09.
Reply With Quote
  #15   Spotlight this post!  
Unread 25-11-2009, 13:08
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Posting LabView Code Easily?

Quote:
Originally Posted by kamocat View Post
Is anyone excited to be able to use the LV 2009 Snippet feature in FRC 2011?
Ask again in a year or so? LabVIEW for FRC 2010 is basically LV 8.6, so far as we know.
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
LabView FRC Toolkit code level issue KHall National Instruments LabVIEW and Data Acquisition 2 11-06-2008 10:40
Any way to report errors in CD-Media easily without posting here? Elgin Clock CD Forum Support 0 20-04-2007 12:56
Configuring Labview code to easyC team877 LabView and Data Acquisition 6 16-01-2007 09:21
LabView Gear Tooth Sensor Code SkiRacer LabView and Data Acquisition 2 17-01-2006 03:53
Custom Dashboard code for LabVIEW ready for download. archiver 2001 3 24-06-2002 00:49


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

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