In order to implement control in LabVIEW, obtain the image of USB Webcam, find out the relevant information online. NI said that due to the issue of data transmission format, LabVIEW can not provide direct support for USB Webcam and point out that you can download some free access to USB Webcam's DLL with USB Webcam, and then call the DLL function to achieve it. Support for USB Webcam. MATLAB 7 provides an image acquisition toolbox, which provides a good support for USB Webcam, while LabVIEW does not support MATLAB 7, its MATLAB Scripts defaults to MATLAB 6.5. In November last year, Ni provided a new DLL, so that LabVIEW can call Matlab 7, so you can access USB Webcam through MATLAB Scripts, which is a simple code. Note that no comments are not supported in Matlab Scripts, and you need to write the annotations I wrote. And there may be a program running, you cannot release a reference to the log file, causing the file that cannot be deleted, which is only fully shut down (if you run Matlab 7 at the same time, you may need to turn Matlab 7 to solve the problem). See Matlab 7's help documentation for details. Mlog = 'g: / mlog.avi'; aviobj = avifile (mlog, 'compression', 'none); // Do not compress aviobj.fps = 25; // saved image of the image VID = VideoInput ('Winvideo'); Vid.LoggingMode = 'Disk & Memory'; vid.disklogger = aviobj; vid.framespertrigger = 300; // Trigger a 300-frame START (VID); Wait (VID, 60); // Waiting Until acquisition or timeout aviobj = close (vid.disklogger); flushdata (vid); // Empty memory delete (vid); Clear VID; Clear Aviobj; Clear Mlog;