05-21-2024 04:33 PM
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.
Solved! Go to Solution.
05-21-2024 05:09 PM
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?
Bob Schor
05-21-2024 05:36 PM
Hi, Bob
Thank you for your kindly reply.
Currently I just tested the example code, "Compatibility Pulse Generation.vi".
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.
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.
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
05-21-2024 06:06 PM
This issue also occurs at the example code "Acquire Every Image (Optimized Performance).vi".
05-21-2024 09:00 PM
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
05-22-2024 05:31 AM
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
05-22-2024 05:54 AM
Aha! Don't do it that way! [You may have found a Fatal Flaw].
Try this:
Bob Schor
05-22-2024 06:12 AM
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
05-23-2024 08:22 AM
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