‎12-01-2016 08:41 AM
Just a quick observation to the fellow contributors.
It is just a matter of time until old VIs simply can not be opened by modern versions of LV. That means those threads that lack images of the code and only include the VIs themselves have a limited life-span.
So to prevent YOUR work to answer a question from going obsolete, please consider including Snippets posted a png's in your replies. That way we can at least look at the code.
Done sharing my thoughts,
Ben
‎12-01-2016 09:35 AM
You also have the issue of older versions of LabVIEW trying to open new VIs. I use the Code Capture Tool to create snippets and post those. As Ben stated, at least you can go by the picture if nothing else. And snippets can easily turn into code as well. So it is definately better than posting an actual VI for solutions.
‎12-01-2016 10:58 AM
I seriously doubt that there will be another massive LabVIEW overhaul that will make current versions unreadable in future versions.
‎12-01-2016 01:20 PM
@crossrulz wrote:
[...]use the Code Capture Tool to create snippets and post those. [...]
I do the same, and set it to save the snippet to an older version to help even more!
‎12-02-2016 11:49 AM - edited ‎12-02-2016 11:56 AM
I'll Chime in!
<Wow, its been awhile since I posted that phrase I usually means I'm going to offer an opinion rather than state fact>
Historically, attachments were prefered over inline images. This has been obsoleted by improvements to network infrastructure. Yup, PERIOD! a few 3rd world areas may still have problems with the amount of data presented in a Disscussion Forum Thread but - Not many. So let me expose my arguments in favor of inline code captures!
in summary, Its easy to inline a snippet, somewhat better to inline a Code Captue and BOTH improve readability. Bonus! the OP can POOF your code into life with the bugfix. <It appears to be even easier than marking a thread "Solved">(Jing is free- if you need to demo how to poof code from a png)
End rant!
‎12-02-2016 01:04 PM
@Ben wrote:
Asking for VIs instead of jpg's
Jpgs are definitely out. With any level of compression, they don't deal well with line drawings (LabVIEW code) and such. PNGs are highly preferred, and we can even create snippets.
Even snippets don't work that well unless we are on a computer that has a suitable LabVIEW version. On a phone, we cannot tell what's in the other cases of a case or event structure, for example. Users often fail to set controls values to reasonable default, so testing a snippet is difficult unless we know what kind of inputs the code typically gets.
‎12-02-2016 01:12 PM
Png's and snippet are superior to just a plane VI that may be in a version newer than what we have installed and can not be viewed on an "i-thingy".
Just my 2 cents,
Ben
‎12-02-2016 01:27 PM
Snippets are OK for simple code, but fail miserably in certain scenarios, e.g. a snippet of a subVI loses the execution setting, icon, and connector assignment, so they are really only usable for flat, single-VI code.
(Creating snippets is often difficult for me, because I occasionally use non-public LabVIEW versions.)
With a bit of effort, it is much more illustrative to (1) attach the code and (2) create a combination image that summarizes and illustrates the gist of the propsed solution. It also makes the posts be more memorable and more easy to find later. (example).
‎12-02-2016 02:12 PM
What you showed above Christian is near ideal and far exceeds the "Try this" reply with a VI attached.
Ben
‎12-02-2016 10:28 PM
If an image captures all of what your question is about I really don't care, but whenever I see a .jpg attached to the post I assume it willl be some super out of context screenshot of the code. Basically, here is 1/4 of 1 of the 5 processes that my application is running, why am I crashing. I have nothing against the format I just kind of assume the image doesn't tell the whole story.
When I escalate things internally I try to just attach the entire project and add screenshots or snippets of relevant code. If I didn't mess up, you just have to look at the images to understand my problem, but I totally understand that I can screw things up so I attach the project just in case.
As a counter-point, I've seen people inline images and no one complains because the images capture the entire problem.