Hi wuliao23,
The detailed help for the IMAQ EdgeDetection VI has a note after the introductory paragraph explaining that the VI destructively modifies your image:
Note This VI modifies the source image. If you need the
original source image, create a copy of the image using the IMAQ Copy VI before using this VI.To get around this, is use IMAQ Create to make a new image buffer just for this copy process, and then use IMAQ Copy to copy from your original 8-bit image (the source) to the new buffer (the destination). Then use that newly copied image as the destination (Image Dst) for the IMAQ EdgeDetection VI, rather than using the same image buffer in memory for the source and destination.