Why do I get IMG_ERR_MLCK when I try to Simultaneously Acquire Images from Two IMAQ Boards? Primary Software: Driver Software>>NI-IMAQPrimary Software Version: 2.5.5 Primary Software Fixed Version: N/A Secondary Software:
Problem: I am attempting to perform two simultaneous continuous image acquisitions using multiple buffers. Both of my acquisitions are using the same subVI to configure and start the acquisitions, but every time I run the program only one of the acquisitions seems to work while the other will return the error "IMG_ERR_MLCK: Memory lock error, cannot perform acquisition" at IMAQ Start.vi. Solution: This error can occur when the names for buffers that you setup for your separate acquisitions are not unique. When one of the acquisitions starts, it will register the names for the images in its buffer; so if the other acquisition tries to register images with those same names it will return the IMG_ERR_MCLK error. This issue is common if you use the same subVI or function to setup the buffer for your acquisitions, because it is likely that you are also assigning the same names to the images in the buffers for both of the acquisitions. The two ways to avoid this issue are either to make sure that unique names are assigned to each of the images in the buffers each time the function is called, or to create a separate function for each acquisition that you plan on making. Related Links: Why do I get an IMG_ERR_MLCK when I try to configure several buffers with NI-IMAQ under Windows 2000? Attachments:
Report Date: 03/14/2003 Last Updated: 03/20/2003 Document ID: 2VDAER2G |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
