From: Patrick on 4 Jun 2010 03:32 Hi, I am attempting to write an IMAQ Adaptor, as we have found the stock NI IMAQ adaptor insufficient (particularly, you cannot set camera specific properties). I appeared to have everything working, but I am running into substantial problem , because when I try to use the DAQ toolkit as well (also using an NI board), the DAQ complains that there is "not enough storage space" whenever I try putdata(). I have even tried removing all NI functions and libraries from my code and I still get the same error. I am using MS VC 2008, I can't seem to get my hands on 2005 as the adaptor suggests as appparently you can't download it anymore.
From: Mark Jones on 9 Jun 2010 07:18 Patrick wrote: > Hi, I am attempting to write an IMAQ Adaptor, as we have found the stock > NI IMAQ adaptor insufficient (particularly, you cannot set camera > specific properties). I appeared to have everything working, but I am > running into substantial problem , because when I try to use the DAQ > toolkit as well (also using an NI board), the DAQ complains that there > is "not enough storage space" whenever I try putdata(). I have even > tried removing all NI functions and libraries from my code and I still > get the same error. I am using MS VC 2008, I can't seem to get my > hands on 2005 as the adaptor suggests as appparently you can't download > it anymore. Hi Patrick, I am curious about your use case. Can you describe some of the camera specific properties that you are referring to as well as what camera and frame grabber you are using as well as the NI-IMAQ C API functions that you are using to set them? Thanks, Mark
From: Patrick on 9 Jun 2010 07:35 Thanks for your reply Mark. We are using the National Instruments 1429 board. We have two cameras, but at the moment we are only using the Atmel Aviiva M2. The stock adaptor 'ni' can grab the frame buffer just fine. However, we cannot enable hardware triggering or set the integration time, which are two 'device specific' propertie that we need, which have to be set through the NI-IMAQ library ('imgxxxx' functions in C - the specific function is imgSetCameraAttribute ) My adaptor was able to do this, but then I ran into the problem with the DAQ toolbox.. Actually I have this error even if I don't even include NI-IMAQ functions at all -essentially creating a 'dummy' adaptor . I believe the issue is is linking against the VC8 runtime (MS Visual C++ 2005) vs. the VC9 runtime(MSVC 2008), at least thats what the difference that dumpbin tells me between the demo adaptor DLL and my dummy adaptor DLL.. I was able to find Visual c++ 2005 Express on the web (not through Microsoft) but I don't think the version was correct as I couldn't even compile the demo adaptor. We discovered a workaround at the moment - we use the stock NI adaptor and then use other software to set the camera specific properties. We would still be interested in a solutiion to this problem. Mark Jones <mark.jones(a)mathworks.com> wrote in message <4C0F7887.80401(a)mathworks.com>... > Patrick wrote: > > Hi, I am attempting to write an IMAQ Adaptor, as we have found the stock > > NI IMAQ adaptor insufficient (particularly, you cannot set camera > > specific properties). I appeared to have everything working, but I am > > running into substantial problem , because when I try to use the DAQ > > toolkit as well (also using an NI board), the DAQ complains that there > > is "not enough storage space" whenever I try putdata(). I have even > > tried removing all NI functions and libraries from my code and I still > > get the same error. I am using MS VC 2008, I can't seem to get my > > hands on 2005 as the adaptor suggests as appparently you can't download > > it anymore. > > Hi Patrick, > > I am curious about your use case. > > Can you describe some of the camera specific properties that you are > referring to as well as what camera and frame grabber you are using as > well as the NI-IMAQ C API functions that you are using to set them? > > Thanks, > Mark
From: Patrick on 11 Jun 2010 18:11 OK, well our 'workaround' didn't quite work, so I was forced to go get the adaptor to work. I believe the problem was using VC++ 2008 instead of 2005. The adaptor seems to be working fine now(well it might have a few issues), with no conflict with the DAQ. "Patrick " <praphael(a)gmail.com> wrote in message <hunu9u$nft$1(a)fred.mathworks.com>... > Thanks for your reply Mark. > > We are using the National Instruments 1429 board. We have two cameras, but at the moment we are only using the Atmel Aviiva M2. The stock adaptor 'ni' can grab the frame buffer just fine. However, we cannot enable hardware triggering or set the integration time, which are two 'device specific' propertie that we need, which have to be set through the NI-IMAQ library ('imgxxxx' functions in C - the specific function is imgSetCameraAttribute ) My adaptor was able to do this, but then I ran into the problem with the DAQ toolbox.. Actually I have this error even if I don't even include NI-IMAQ functions at all -essentially creating a 'dummy' adaptor . I believe the issue is is linking against the VC8 runtime (MS Visual C++ 2005) vs. the VC9 runtime(MSVC 2008), at least thats what the difference that dumpbin tells me between the demo adaptor DLL and my dummy adaptor DLL.. I was able > to find Visual c++ 2005 Express on the web (not through Microsoft) but I don't think the version was correct as I couldn't even compile the demo adaptor. > > We discovered a workaround at the moment - we use the stock NI adaptor and then use other software to set the camera specific properties. We would still be interested in a solutiion to this problem. > > Mark Jones <mark.jones(a)mathworks.com> wrote in message <4C0F7887.80401(a)mathworks.com>... > > Patrick wrote: > > > Hi, I am attempting to write an IMAQ Adaptor, as we have found the stock > > > NI IMAQ adaptor insufficient (particularly, you cannot set camera > > > specific properties). I appeared to have everything working, but I am > > > running into substantial problem , because when I try to use the DAQ > > > toolkit as well (also using an NI board), the DAQ complains that there > > > is "not enough storage space" whenever I try putdata(). I have even > > > tried removing all NI functions and libraries from my code and I still > > > get the same error. I am using MS VC 2008, I can't seem to get my > > > hands on 2005 as the adaptor suggests as appparently you can't download > > > it anymore. > > > > Hi Patrick, > > > > I am curious about your use case. > > > > Can you describe some of the camera specific properties that you are > > referring to as well as what camera and frame grabber you are using as > > well as the NI-IMAQ C API functions that you are using to set them? > > > > Thanks, > > Mark
|
Pages: 1 Prev: blkproc Next: delay for hdl code generation and general concept |