Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ Viewer activex control freezing

Hello,
I recently made a post (http://forums.ni.com/ni/board/message?board.id=200&message.id=17935) about a project I am working on, I am using VB6 activex controls to view video output from a thermal camera using NI PCI-1405. I have encountered a new problem, one that has been present since I started on the project but I was hoping I could resolve. I am using CWIMAQ and CWIMAQVIEWER inside a VBA application (DeltaV Operate if anybody is familar). The viewer operates quite well most of the time, but periodically it freezes, causing the rest of the program to freeze also. Operate uses various other scripts to create a user interface, and when the CWIMAQVIEWER pauses it causes the others to pause preventing the user from being able to use the program. I have checked for the possibility of the problem being caused by other VBA elements in the program, but the problem appears to occur only when  CWIMAQVIEWER is active and capturing an image from the 1405, leading me to believe it is CWIMAQ or CWIMAQVIEWER.
Here is the code used to display the video feed.
 
    CWIMAQViewer1.Tool = 1
    CWIMAQViewer1.Attach CWIMAQ1.Images(1)
    CWIMAQ1.ROILeft = 60
    CWIMAQ1.ROITop = 30
    CWIMAQ1.ROIWidth = 680
    CWIMAQ1.ROIHeight = 580
    CWIMAQViewer1.ZoomScale = 0
    CWIMAQ1.AcquisitionType = cwimaqAcquisitionContinuous
    CWIMAQ1.Start
  
I would greatly appreciate any help with this problem 
 
 
0 Kudos
Message 1 of 2
(3,126 Views)

Hi,

That does indeed seem strange, I've done a search on our internal systems and found no known issues relating to this. Could you please give me some more information - mainly the hardware & software versions, operating system and so forth and (if possible) the code - although I see no reason why this should cause this issue so no worries if your unable to upload this.

I will then look into this further for you to discover where the issue lies,

All the best,

Applications Engineer
0 Kudos
Message 2 of 2
(3,075 Views)