取消
显示结果 
搜索替代 
您的意思是: 

Why snippet (png) cannot be loaded in labview?

已解决!
转到解答

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 项奖励
1 条消息(共 10 条)
6,506 次查看
Please indicate the version of LabVIEW that you're using, as well as the specific message where you found this snippet.
0 项奖励
2 条消息(共 10 条)
6,500 次查看

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 项奖励
3 条消息(共 10 条)
6,494 次查看
解答
已被主题作者 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 项奖励
4 条消息(共 10 条)
6,476 次查看

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 项奖励
5 条消息(共 10 条)
6,454 次查看
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 项奖励
6 条消息(共 10 条)
6,426 次查看

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 项奖励
7 条消息(共 10 条)
6,396 次查看

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 项奖励
8 条消息(共 10 条)
6,378 次查看

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 项奖励
9 条消息(共 10 条)
6,373 次查看

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 项奖励
10 条消息(共 10 条)
6,350 次查看