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