Hi,
When writing vision-applications in LabVIEW, I never know what the best way, or the difference is, between
the 2 following methods to pass a reference of an image to a parallel VI.
So suppose I have a producer loop that produces an image with a unique name ("IMAQ Create"-name).
Then I have a consumer loop that should process this image.
I typically use string-type queues to send a message from a producer to consumer loop.
So in the producer loop, I want to put the reference of this image in a string, and send this string (via queues) to the consumer loop.
There, the string must be converted back to an actual image.
I have used 2 ways of coding this in the past. Please tell me which one is best
1 : use coersion :
- just wire the image control to a string, so you get the image name in your string control. Send the string-value to the other loop via a queue.
There I do the reverse : wire the string control to an image.
2. Use flatten to string :
- I use the "IMAQ flatten image to string" (by reference!), so I also get a string. I send this string to the other loop.
and there I unflatten the string back to an image.
Or do both methods actually do exactly the same?
Thanks for your advice!
Thomas.