LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

The program crashes as soon as the IMAQdx session control on the 64-bit labview front panel is used

Solved!
Go to solution

I want to use IMAQ to capture images from a USB camera. When I use 64-bit LabVIEW, I need to use IMAQdx session to create a new Session for IMAQ Grap. However, when using an IMAQdx session on the front panel of 64-bit LabVIEW, LabVIEW crashes immediately. I have tried multiple versions of LabVIEW. This problem does not occur on 32-bit LabVIEW.

1.png

2.png

  

 

0 Kudos
Message 1 of 9
(679 Views)

The problem you are describing seems very strange to me.  Of course, you've found one "solution" -- run 32-bit LabVIEW, not 64-bit LabVIEW.  [I've been running 32-bit LabVIEW from LabVIEW 7.0 to LabVIEW 2021, and while I have "We apologize for the inconvenience" crashes, have never had difficulty programming with LabVIEW Vision].

 

Can you describe exactly what you do to cause this crash?

  • Have you created a LabVIEW Project, and are you working in the context of that Project?
  • At the time you drop the IMAQ I/O control, are there any other entries on the VI you have open?
  • When I open the I/O Front Panel controls on my version of LabVIEW 2021 32-bit, I do not see a control called "IMAQ".  Rather, I see one called "IMAQdx".  Is it possible you installed the wrong LabVIEW Vision driver?

LabVIEW 2021 FP I-O.png

Bob Schor 

0 Kudos
Message 2 of 9
(660 Views)

Hi, Bob

 

Thank you for your kindly reply.

 

  • Have you created a LabVIEW Project, and are you working in the context of that Project?

Currently I just tested the example code, "Compatibility Pulse Generation.vi".

Jiazhe_0-1716330493467.png

When I open it with 32-bit LabVIEW 2024, this sample program can be opened normally. When the gear is opened with 64-bit LabVIEW 2024, the entire program will crash directly. After my investigation, it was caused by session I/O.

Jiazhe_1-1716330675582.png

 

  • At the time you drop the IMAQ I/O control, are there any other entries on the VI you have open?

When I delete the session I/O control on the front panel of this example program in 32-bit LabVIEW, the program can be opened normally in 64-bit LabVIEW.

  • When I open the I/O Front Panel controls on my version of LabVIEW 2021 32-bit, I do not see a control called "IMAQ".  Rather, I see one called "IMAQdx".  Is it possible you installed the wrong LabVIEW Vision driver?

Jiazhe_2-1716330874727.png

Jiazhe_3-1716330904369.png

Regarding the problem of not finding this control, you may need to download the NI-IMAQdx driver.

I also encountered similar problems in the 32-bit LabVIEW 2019 version and the 64-bit LabVIEW 2019 version.

 

 

Jiazhe 

University of Sussex

0 Kudos
Message 3 of 9
(642 Views)

This issue also occurs at the example code "Acquire Every Image (Optimized Performance).vi".

Jiazhe_1-1716332763566.png

 

Jiazhe_0-1716332670095.png

0 Kudos
Message 4 of 9
(617 Views)

Hi, Jiahze.

 

      IMAQ and IMAQdx are quite different (as I recall).  My understanding is that IMAQ works with (old, "original") cameras made by NI, and ran according to an "NI Protocol", while IMAQdx implements the GenICam protocols developed for WebCams and works with "modern" (USB and TCP/IP) cameras.

 

     So if you are going to use an IMAQdx protocol, you need the IMAQdx Driver.

 

Bob Schor

0 Kudos
Message 5 of 9
(593 Views)

Hi, Bob

 

Thank you for you reply. Sorry, I may not have explained the problem clearly. Currently I just use IMAQdx to drive the USB camera, but using "IMAQdx Open Camera" requires creating an IMAQdx Session, and creating an IMAQdx Session in 64-bit LabVIEW will cause LabVIEW to crash. I had a similar situation using 64-bit LabVIEW on my colleague's computer.

 

I also record a video to reproduce this problem.

 

Regarding the driver problem required by IMAQdx, could you provide me with some tips to solve it? Like how to install this specific driver.

 

Your assistance in this matter would greatly aid me in finding a solution. Thank you very much for your help.

 

Jiazhe

0 Kudos
Message 6 of 9
(569 Views)

Aha!  Don't do it that way!  [You may have found a Fatal Flaw].

 

Try this:

  1. Open a new VI.
  2. Open Vision, IMAQdx, and drop a Configure Grab on the Block Diagram.
  3. Click the upper left input, "Session In", and choose Create Control.  It should drop "Session In".
  4. With luck, you will not have a crash.  Go to the Front Panel, click the little triangle on "Session In", and it should populate with your (attached) camera.  In my case, it says "cam0" since my laptop's Webcam is always attached.
  5. If this works, please file a Service Request with NI and let them know about this bug!

Bob Schor

0 Kudos
Message 7 of 9
(560 Views)

Hi, Bob

 

Thank you for your reply.

 

I tried the steps you gave me, but unfortunately 64-bit LabVIEW still crashes. I recorded a video documenting this step.

 

Jiazhe

0 Kudos
Message 8 of 9
(554 Views)
Solution
Accepted by topic author Jiazhe

Sigh.  This may be a "true bug".  At this point, I'd say "try installing 32-bit LabVIEW" (which is what I run), especially if you've seen a similar behavior on another PC running 64-bit LabVIEW.

 

Bob Schor

0 Kudos
Message 9 of 9
(519 Views)