09-30-2007 10:35 PM
10-01-2007 01:35 PM
Both VIs create an image with the name "datasocket", acquire from USB to this image and transmit the (image) string via TCP.
The documentation of IMAQ Flatten Image to String says: "Use the Unflatten from String LabVIEW primitive to convert this string back to an image. If an image has the same name as the flattened image in memory, when the string is unflattened, the contents of the flattened image string are copied to the image. Otherwise, a new image with a unique name is created that contains the contents of the flattened image string."
This matches your what you see: An image received via TCP might get overwritten by a locally acquired USB image.
This is a race condition that you can easily prevent by using different Image Names in your VIs (e.g. Client "ImgA" and Server "ImgB").
Hope this "matches", Guenter
10-17-2007 05:02 AM
10-17-2007 05:02 AM