Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ I/O & IMAQDX

Hello,

 

I'm using NI PCIe-8255R. I linked lamps (ISO outputs 1,2,3) and a IEEE 1394 (firewire) camera to it.

 

I'm programming in C and using IMAQ-IO API (to switch on lamps), and IMAQDX API (for the camera).

 

I can use imaqio functions (to switch on lamps) and imaqdx functions (like grab function) separately but I can't do it in the same main program.

 

For example I can't use : imaqIOOpen() after/before IMAQdxOpenCamera()

 

Environment :

Windows 7

I installed Labview 2010, NI-IMAQ I/O 2.6.1, IMAQDX 4.1

 

The error box is this :

 

error.png

 

In English : "Exception not managed at 0x77979a4c in camera.exe : 0xC0000005 : access violation when reading at 0x000003e6"

 

Thank you for any help

0 Kudos
Message 1 of 2
(5,281 Views)

Hi Powdream,

 

I think your problem is coming from the fact your are "booking" a resource, here it's the camera. And when a task need to have access to a resource (imaqdx for a grabbing action for example), the resource has to be free. Then you can't make both action at same time. There will be a conflict. The second task (to switch on lamps) will wait that the grab action is finished (that the resource is free).

 

You have to do it separately. 

 

Regards,

0 Kudos
Message 2 of 2
(5,249 Views)