LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why snippet (png) cannot be loaded in labview?

Solved!
Go to solution

Dear all,

 

I have tried to copy a few snippet (png) file and try to drag it to labview, but why it always fail to paste properly. It is still like a png file but it cannot be execute.

 

How do i solve that?

0 Kudos
Message 1 of 10
(5,597 Views)
Please indicate the version of LabVIEW that you're using, as well as the specific message where you found this snippet.
0 Kudos
Message 2 of 10
(5,591 Views)

How do you copy and paste the snippets?

It won't work from Firefox directly. If you use firefox you need to drag and drop onto an explorerr window. then drag and drop into LabVIEW.

This might not work since firefox also embeds a BMP in the drag and drop stream.

 

Also the website might compress the PNG. The rules of PNG says that the embedded content that is unsafe (like a LabVIEW code snippet) should be removed, so it might be that the content is not available in the image.

 

Some more technical detail is on the LabVIEW Wiki.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 10
(5,585 Views)
Solution
Accepted by topic author Joven

Also, two more points.

 

First, the image in the other thread where you posted is not a snippet, just a regular PNG. Snippets have a border and a header.

 

Second, if the snippet is of a newer version, it won't work.


___________________
Try to take over the world!
0 Kudos
Message 4 of 10
(5,567 Views)

It looks like the question came about because of this thread.  http://forums.ni.com/ni/board/message?board.id=170&thread.id=491814

 

The code posted was definitely not a snippet.  Just a portion of a screenshot.

0 Kudos
Message 5 of 10
(5,545 Views)
Just adding plug for making/extracting Snippets in pre-2009 LabVIEW versions.

Make them with the Code Capture Tool and extract them using this JKF RCF plugin.
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 6 of 10
(5,517 Views)

Jim's signature says : ((361 / 22) + 81)^.25

 

The calculation results look like pi.  Can you explain the formula?  I'm just curious.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 7 of 10
(5,487 Views)

tbob wrote:

Jim's signature says : ((361 / 22) + 81)^.25

 

The calculation results look like pi.  Can you explain the formula?  I'm just curious.


It's supposedly a formula for a number that's claimed to be equal to PI. Not sure who came up with it. However, since PI is a transcental number, it's only valid up to a certain number of decimal places. In fact, Wolfram says it's not PI

0 Kudos
Message 8 of 10
(5,469 Views)

smercurio_fc wrote:
[...] However, since PI is a transcental number, it's only valid up to a certain number of decimal places.  

Could you imagine the trouble I get into if I published a discrete formula that exactly represented pi?

 

I wonder what would you have to enter into Wolfram to get it to say True (other than pi = pi)?  To be sure, they aren't comparing the left side of your test with the EXACT value of pi.  Anyway, this equation is only -1.00715E-9 away from Wolfram's interpretation of pi.

Message Edited by jcarmody on 04-19-2010 02:19 PM
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 9 of 10
(5,464 Views)

No, Pi is something between 3 and 4 (accoring to almost Indian (as in the US of A) law)

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 10 of 10
(5,441 Views)