Hi again,
I am having trouble displaying an image from my camera on the front panel. This is the advice I've recieved thusfar:
"Unlike most datatypes in LabVIEW (numerics, booleans, etc.), the image
datatype is not actual data. Instead, the image datatype just points to
the location of the image data in memory. This means that if the data in
memory changes, everything pointing to that data changes.
In the case of your VI, the particle analysis functions change the data in
memory, so when the front panel updates, the image changes. This doesn't
happen to the probe, because the probe only updates when dataflows past the
probe. To see this more easily, try running the VI with highlight
execution turned o
n. You should initially see the image that you expect on
the front panel, but after a few seconds the image will go black, because
the code is turning it into a binary image and doing particle analysis on
this binary image.
To avoid this problem, you will need to use the IMAQ Copy function and copy
the image into a new buffer. If you then display the copied image, instead
of the manipulated image, you will avoid this problem."
I tried using IMAQ Copy to copy the image to a temporary file but the image still comes out black. This has been plaguing me for about 2 days now. I have included a copy of my VI (this version gets an image from a file instead of the camera for testing purposes)... any ideas? Thanks a million.
Regards,
Adam Stagnaro
Abaxis Inc