07-22-2013 04:56 AM
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 :
In English : "Exception not managed at 0x77979a4c in camera.exe : 0xC0000005 : access violation when reading at 0x000003e6"
Thank you for any help
07-30-2013 06:56 AM
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,
Matthieu RICORD
National Instruments France
Été de LabVIEW 2014
12 présentations en ligne, du 30 juin au 18 juillet