11-13-2006 05:01 PM
11-14-2006 01:41 PM
Hello Dave,
Thanks for using our discussion forums. When you mention using “flatten to string” are you using the actual “IMAQ flatten to string” vi? This vi actually returns the string representation of the image. You can then use the basic “unflatten from string” to get the image back as long as you specify the type.
If you want to use the basic “flatten to string”, here is an example which converts the image to an array, compresses, uncompresses, and converts the array back to image, but the amount of data it sends across the network is the full size of the image.
http://zone.ni.com/devzone/cda/epd/p/id/3314
Hope this helps.
Regards,
Vu D
Applications Engineer
11-14-2006 03:19 PM
I'm using the "Flatten to String" vi. I've looked for "IMAQ flatten to string" in LabVIEW and the help files but haven't found it. Where is it located?
As a test I flattened the image to a string then stored it in a TestStand local variable. I then send the string to another vi which takes the string, unflattened it and displays it in an external window. Works fine. But when I try and retrieve that string in the Operator Interface using VI server property, invoke node and "Unfatten from String" there, the operator interface crashes.
I put together a VI that shows what I'm doing in the Operator Interface. This has worked reading other locals from the sequence, so I don't understand why it doesn't work for this. Is it possible the "GetValString" property doesn't work for a binary string?
11-15-2006 02:12 PM
11-16-2006 10:27 AM
I updated my Vision Acquition and now use "IMAQ Flatten to String" instead of "Flatten to String". However I get the same result. It works fine in the sequence but if I pull the flattened data into the operator interface and try to unflatten it there, LabVIEW crashes.
Attached is how I do it in the Operator Interface.
Dave
11-17-2006 05:42 PM
11-19-2006 04:12 PM
11-21-2006 12:58 PM
11-21-2006 01:03 PM
@dowNow wrote:
Hello,
I think I'll need to pass images from an execution to the OI sometime
in the near future. Are you saying that one cannot pass an IMAQ image
handle from one process, TestStand and LabVIEW, to another, LabVIEW OI?
What you are talking about with the flattened strings is copying the
image from the execution to the OI VI, right? Isn't there some sort of
workaround you could do in CVI or something where the OI could access (share)
the memory where the image already is?
11-21-2006 01:35 PM