LabVIEW Snippets not Working on New CD

#1

When I put a LabVIEW snippet on discourse by dragging it to the message edit box (whatever it’s actually called) and then post it (example below). It appears to be compressed and LabVIEW will not recognize it as code no matter how I try to download it. Is there anyway to:

  1. Allow discourse to compress the image data but keep the LabVIEW embedded code intact or
  2. Keep discourse from compressing or otherwise changing the file at all but still display it.
    VI%20Snippet%20Example

It would be best if discourse would automatically recognize VI snippets and treat them as such so we don’t have to remember any special syntax.

By the way, thanks for updating to Discourse!

1 Like
How to program a bimba air cylinder in LabVIEW ~ pneumatic
Refnum Issue
#2

This is the same VI snippet but in a zipped folder so you have a copy of the original file.
Zipped VI Snippet Example.zip (23.3 KB)

#3

It looks like discourse converts PNGs to JPG automatically. @Brandon_Martus this appears to be how to disable it:

1 Like
#4

When I right click the image above and Save Image As… to download it, the file is still a PNG but it is only 8.43 KB whereas if I download the zip file and extract the image it is 27.6 KB.

#5

Thanks, Joe.

@Jonathan_L, I’ve updated the setting Joe pointed out, if you want to give it another shot!

#6

Here’s a test

VI%20Snippet%20Example

Edit: Didn’t work

1 Like
#7

@Brandon_Martus It looks like there’s also a setting to strip image metadata that would cause this.

3 Likes
#8

I’ve changed that setting if you want to give it another try.

3 Likes
#9

Testing the metadata setting:VI%20Snippet%20Example

Edit: It works now! Nice work @Joe_Ross and @Brandon_Martus

3 Likes