The 'Get Clipboard Image' method fails for images in built executables.
It works for text (you get an image of the text back).
In the runtime environment it works ok.
LabVIEW versions:
Test code:
Regards,
Ton
已解决! 转到解答。
I dont think so, because in LV2011 it works
You want to retrive data related to image or image?
I want to get the clipboard image. If I run this code in the Development environment I get an image with the latest clipboard info.
If I run it (on the same) PC in an executable I get an image with the latest text data.
Ton
I know for sure that it worked in LV 7.0, because I had an executable which copied the image from the clipboard using that method and displayed it in a picture control (in fact, I just dug it up and ran it now with the snippet you posted and it showed it just fine). Maybe it broke at some point along the way. I actually just tested it now in 2011 and it doesn't work there either when I build an EXE.
check the RUN time property of all the components
Ton,
How about now? I meet the same issue about Clipboard.Get Image node.
Home--colinzhang.net: My Blog
The method is not on the 'not supported in thr RTE' list, here's the detail about this method:
The following table lists the characteristics of this method.
Data type | No return value |
Available in Run-Time Engine | Yes (Read/Write) |
Available in Real-Time Operating System | Yes |
Remote access allowed |
Yes |
So I have a feeling that it should work, note that is works if the clipboard has text!
Ton
Yes, i feel the same.
Home--colinzhang.net: My Blog
Why dont you store the array of pixels values to clipboard and later retrieve this only and show the image to user. This will solve the problem