Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Posting LabView Code Easily? (http://www.chiefdelphi.com/forums/showthread.php?t=68800)

Greg Marra 12-08-2008 16:10

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?

whitetiger0990 12-08-2008 19:32

Re: Posting LabView Code Easily?
 
2 Attachment(s)
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.

whytheheckme 13-08-2008 14:20

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

Joe Ross 13-08-2008 15:50

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.

Greg Marra 13-08-2008 16:40

Re: Posting LabView Code Easily?
 
Quote:

Originally Posted by Joe Ross (Post 761475)
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.

Nate Smith 13-08-2008 17:18

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...

Brandon Martus 13-08-2008 17:28

Re: Posting LabView Code Easily?
 
Quote:

Originally Posted by whytheheckme (Post 761460)
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.

Greg McKaskle 13-08-2008 22:06

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

kamocat 14-08-2008 02:01

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

Greg McKaskle 14-08-2008 08:17

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

whytheheckme 14-08-2008 14:24

Re: Posting LabView Code Easily?
 
Quote:

Originally Posted by kamocat (Post 761533)
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

kamocat 25-11-2009 12:32

Re: Posting LabView Code Easily?
 
Revisiting this thread...

Is anyone excited to be able to use the LV 2009 Snippet feature in FRC 2011?

Jeff Pahl 25-11-2009 12:58

Re: Posting LabView Code Easily?
 
Quote:

Originally Posted by kamocat (Post 884237)
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....

Joe Ross 25-11-2009 13:03

Re: Posting LabView Code Easily?
 
Quote:

Originally Posted by Jeff Pahl (Post 884241)
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

Alan Anderson 25-11-2009 13:08

Re: Posting LabView Code Easily?
 
Quote:

Originally Posted by kamocat (Post 884237)
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.


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

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