04-18-2010 08:47 AM
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?
Solved! Go to Solution.
04-18-2010 09:08 AM
04-18-2010 09:27 AM
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
04-18-2010 11:41 AM
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.
04-18-2010 09:36 PM
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.
04-19-2010 05:23 AM
04-19-2010 11:32 AM
Jim's signature says : ((361 / 22) + 81)^.25
The calculation results look like pi. Can you explain the formula? I'm just curious.
04-19-2010 01:06 PM
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.
04-19-2010 01:14 PM - edited 04-19-2010 01:19 PM
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.
04-19-2010 03:26 PM
No, Pi is something between 3 and 4 (accoring to almost Indian (as in the US of A) law)
Ton