Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Draw a line on a CWImaqViewer durinq a continuos aCquisition

Can I Draw a line on a CWImaqViewer during a Continuos Acquisition. I Retrieve even the same error:"the object has been locked by an ongoing acquisition and may not be modified"
0 Kudos
Message 1 of 4
(6,212 Views)
Hi,
I'm using NI-IMAQ 2.6.1, Vision 6.1 and a PCI-1407.
I ran the following example installed from the driver:
C:\Program Files\National Instruments\NI-IMAQ\Sample\VB\Grab
and everything worked fine, so I was able to draw lines during the acquisition.
Try with this example to debug your issue.
Regards
AlbertoA
0 Kudos
Message 2 of 4
(6,192 Views)
Hi,
Thank you for your reprly.
But if I try to draw a line by code for example CwImaqViewer.images.overlay(1).Drawline(..) the error occurs.
Please help me!!

Bye
0 Kudos
Message 3 of 4
(6,184 Views)
Hi,
you have duplicate the memory (the image) in which you save the images acquired from the board. Then you can manage the copied buffer (image) with the vision functions (overlay functions you you case).
Regards
AlbertoA
0 Kudos
Message 4 of 4
(6,180 Views)