04-25-2017 09:37 AM
I do not think there is something to do with the dispose function. I removed it from the program, and it still does not solve the problem. Probably dkfire is right, the Get image method does not work for IMAQ images. Thanks for your kind suggestions though.
04-25-2017 09:47 AM
It's not that nothing is saved. The image data from the display is saved, but just the brightness is auto-scaled, so it too dim to see any features in image. so what I need is to save the image with a fix colorscale or as it is shown on display. Cheers!
04-25-2017 10:04 AM
@Raul6128 wrote:
It's not that nothing is saved. The image data from the display is saved, but just the brightness is auto-scaled, so it too dim to see any features in image. so what I need is to save the image with a fix colorscale or as it is shown on display. Cheers!
Something seems wrong with the method you were trying to use.
Try...
Right-click the image indicator and select "Create reference"
Right-click the reference node and choose "Create >>> Method for Imaq.... >>> Get Image.
Then using the error wires use the Get Image method you created to get the image AFTER it is acquired and BEFORE the image is disposed.
Ben
04-25-2017 10:17 AM
Thanks! but as you can see, there is no method available for IMAQImage class.
04-25-2017 10:19 AM
Have you tried a control reference, like I suggested?
I don't know IMAQ, so I can't help you there, but my first suggestion works for everything else.
You can even get an image for a BOOLEAN control.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
04-25-2017 10:24 AM
Is there a reason that you won't wire it up the way my diagram showed?
Blog for (mostly LabVIEW) programmers: Tips And Tricks
04-25-2017 10:45 AM
Certainly no! Here is a saved image using your method, it kind works, but the frame of the display is also included in the image, which is not good from my prospective. I need to process the image later in Matlab.
04-25-2017 10:48 AM
OK, then use IMAGE SUBSET to specify a rectangle that is the area you want.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
04-25-2017 10:55 AM
@Raul6128 wrote:
Thanks! but as you can see, there is no method available for IMAQImage class.
Look at what I wrote again.
Create the reference for the indicator NOT the Imaq wire.
Ben
04-25-2017 11:02 AM
Thanks! but if create a reference for the indicator, the frame of the indicator will also be included in the image, see below.