LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Seeking Help: Camera Not Found Error (-1074360311) in LabVIEW Code

Dear community, 

I hope this message finds you well. 

I am currently working with a pre-existing code and encountered an issue when attempting to capture signals from the camera. Specifically, I received the error code - 1074360311 at the IMAQdx open camera.vi, indicating that the camera was not found. Could anyone provide insight into why this issue might be occurring and suggest potential solutions? 
For context, I am able to detect the camera's value using MAX (Measurements & Automation Explorer). 

Thank you for your assistance.

 

newcamtestcode.png

0 Kudos
Message 1 of 4
(218 Views)

Your attached picture (not nearly as helpful as a VI, preferably "Saved for Previous Version" LabVIEW 2019 or 2021, if more recent) seems to show two cameras, one called "Camera" and one called "Session In".

 

How does your (single?) camera appear in MAX?  Actually, here's a place a Picture would be helpful -- open MAX, expand Devices and Interfaces, and take a Snap of what MAX shows you.  Each "camera" should show up with a Camera Icon, a "name" (such as "Integrated Webcam"), and a device name in quotation marks, such as "cam0".

 

I also recommend you attach the relevant VIs.

 

Bob Schor

0 Kudos
Message 2 of 4
(196 Views)

Thank you so much Bob for your detailed response and suggestions! 
Both cameras are functioning well in the MAX and pictures showing the setup are attached. (cam0 and cam1)

Moreover, the relevant VI is attached as well for your reference.

I really value your guidance and help. 
Looking forward

Download All
0 Kudos
Message 3 of 4
(180 Views)

I'm rather busy with my own work right now, but here are some suggestions you should consider:

  • Lose the Sequence structure.  It is rarely needed (not counting FPGA routines, where timing is concerned).
  • "Start over" (with a small demo routine).  You say you could see images in a Test Panel (I think you said that ...).  So write a small routine that opens one camera, configures one buffer, then write a While Loop that has a IMAQdx image in (haven't done Image work for a bunch of months, so have forgotten the function name), and show it in a Front Panel Display window.  When you exit the While (via a Stop button), close the IMAQdx device.
  • If you have more than one camera running at the same rate, they can be in the same Loop, especially if you start them at the same time.  Note that the While Loop should not need any timing, and the IMAQdx Read should run at the (common) Frame Rate of the cameras.  You might want to consider using a Producer/Consumer pattern where you "export" the Image (for each camera) from the "Camera Loop" and send it to a "Display Loop" which displays the images without "blocking" the incoming images.
  • You might want to learn about Buffers, what they are, how many you might need, and how to use them.  IMAQdx is a very different paradigm from DAQmx ...

Bob Schor

 

0 Kudos
Message 4 of 4
(153 Views)