Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use the NI-IMAQ for IEEE-1394 driver without IMAQ vision?

I am wondering if I can use the NI-IMAQ for IEEE-1394 driver without also using IMAQ Vision. I am programming in VB. All of the examples use IMAQ vision (CWIMAQViewer).
 
Is this possible?
 
Thanks!
 
0 Kudos
Message 1 of 11
(5,674 Views)
Yes.  1394 is for acquisition, while Vision is for processing.  They are two separate entities, and you can use either without the other.  It may be helpful to install the standard IMAQ drivers as well, which I think will give you the viewer.
 
Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 11
(5,669 Views)
How do I view the image that was acquired if I don't have IMAQ Vision?
 
In the VB examples provided, we have the following:
 
Dim myImage As New CWIMAQImage
.
.
.
CWIMAQViewer1.Attach myImage
errorCode = imaq1394GetImageCW(sid, IMG1394_LASTBUFFER, BufferNumber, IMG1394_ONOVERWRITE_GET_NEWEST, myImage)
 
In this case, the image is displayed in the CWIMAQVIewer. If we don't have that, how would we view the image?
 
Thanks!
0 Kudos
Message 3 of 11
(5,670 Views)

We are getting out of my realm of expertise, because I don't do VB programming.  I checked the manual for the standard IMAQ drivers (non 1394), and it looks like they include CWIMAQViewer.  Have you tried installing them?  I think the current version is IMAQ 3.5.1, and you can download it if you need to.

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 4 of 11
(5,662 Views)
Hey Steverino,
 
When you install the NI IMAQ for IEEE 1394 driver, you do actually install the vision dll also, but you don't get full access to all of the functions in the Vision dll. You do get access to a limited number of functions such as the Viewer, but you can only use it to view the image that you acquire. You can't perform other vision functions with just the 1394 driver like masking, etc. So you don't need to worry about not having Vision if you aren't processing your images, because to view the image you acquire, you can use the Viewer that comes with the driver. Take a look at the example VB programs that come with the 1394 driver (which you can find the examples in the following directory: C:\Program Files\National Instruments\NI-IMAQ for IEEE-1394\Examples\VB) If you have the 1394 driver installed and activated, then you don't have to worry about other ways to view the image, you can use the Viewer.  Also, what version of the driver are you using? Last, is the Viewer not working for you, or are you just wanting to make sure you can use it with the driver? Let us know if you are getting any errors, or if there are other issues that you are having. Thanks, and have a great day. 
 
Regards,
DJ L.
0 Kudos
Message 5 of 11
(5,637 Views)
Thanks, this clarifies things a bit. The only "processing" is want to do (other than viewing) is to save the image. Is this possible without CWIMAQVision?
 
I noticed that there is a LabWindws/C++ function, SaveBuffer, in the IMAQ for IEEE1394 control, but I didn't see an equivalent one for VB.
 
Any ideas?
 
Thanks again.
0 Kudos
Message 6 of 11
(5,625 Views)
Hey Steverino,
 
The driver software allows you to acquire and also allows you to save the images to disk. So you should be able to use the SaveImageToDisk (CWIMAQ.SaveImageToDisk Filename, SourceImage) function that comes with the Vision dll. You can find more information about this function in the NI Vision for Visual Basic Reference Help document. Try that out and let me know if it does or does not work for you. Thanks.
 
Regards,
DJ L.
0 Kudos
Message 7 of 11
(5,606 Views)
hi,
 
i was wondering if anyone can pls tell me wat is the difference between the AxCWIMAQVision and CWIMAQVision?i tried to interchange the two and i get this error message when i attempt to use the Learncolor function: An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll
Additional information: Catastrophic failure
 
im trying to develop a class library in vb.net ,that can be called from a console based application.but it seems to me that console applications cant handle activeX components(i was getting the InvalidActiveXStateException error). the only Active X control i can see in my program is the AxCWIMAQVision. so i tried to use CWIMAQVision instead,but now im stuck with the above error.Smiley Sad
is there a solution for this?or,if switching to CWIMAQVision wont solve my invalid active X problem,is there any other solution for it?
 
thank you..
0 Kudos
Message 8 of 11
(5,034 Views)
Hi, you have to call the createcontrol() method if you do not insert the control in a form using the designer:

Dim Vision1 as new AxCWIMAQVision

Vision1.createcontrol()

....

Hope this helps.

--
Simone
Message 9 of 11
(5,011 Views)

hi simone,

thank u so much for ur help..guess wat,that did the trick.after so many rewrites,my application works now!!!!just 1 extra line of code,and now it works perfectly..

thanks again!!really appreciate it. Smiley Very Happy

 

 

0 Kudos
Message 10 of 11
(5,007 Views)