03-29-2010 01:21 PM
03-30-2010 12:47 PM
Hello acsyman,
I have not seen any users who have done this in C, but here is a.NET example located in another forum. It should at least give you a frame for how you can craft your code.
I also want to mention that the latest IMAQdx has this functionality built into the driver, but IMAQdx does require a separate license to activate to use.
When you say that you were able to save an image with the WIA Control, is this a separate interface or something that you coded into LabWindows? If you already have the image acquisition, are you just trying to figure out how to display them?
03-31-2010 01:35 AM
03-31-2010 05:46 PM
04-01-2010 03:03 AM
Unfortunetly I do not have any experience with Activex.This is one of the codes I tried so far:
#include "wiaaut.h"04-01-2010 03:07 AM
I haven't tried the .net example so far ,because the holidays are coming and I have some work to do,but as soon as I will I write I post here.
Thank you verry much for your quick response, I apreciate that.
04-01-2010 05:47 PM
Hey acsyman,
Here's a KB that outlines a tool that will generate a framework from an ActiveX library that you can use to build your code up with. Primarily designed to build Instrument Drivers, it also serves well for someone who doesn't have experience with ActiveX programming. Hope this helps!
04-02-2010 09:27 AM
07-30-2012 03:15 PM
Hello ColeTrain,
You mentioned that the IMAQdx has the USB stuff built into it, but I'm having trouble getting it to work. We use LabWindows CVI 8.1 with Vision 8.6 and we have our system working with a firewire camera, but I'd like to change it to a USB one. I can capture a USB frame in the Vision Assistant 8.6, but that's about it.
With 2 USB cams connected, when I try IMAQdxEnumerateCameras, I get 0 cameras returned. Also, I can't see the USB cameras in MAX, so I assume that may have something to do with it. I'm reluctant to go down the WIA path since our software needs to work in Windows XP and Win7.
Was there an update that we missed? Is there updated documentation/example of getting USB cameras to work for all builds?
Thank,
Stan.
07-31-2012 06:10 PM
Hi Stan,
First of all, you probably would have been better off posting in a new thread as this one is two years old and the issue seems to be different.
IMAQdx will work with both USB and FireWire cameras that are DirectShow compliant. (See this KnowledgeBase)
If the cameras do not show up in Measurement & Automation Explorer (MAX), then they probably are not DirectShow compliant. If this is the case, then the only options would be to call into the dll that the camera manufacture's software uses to display images or going down the WIA path as discussed in this thread.