Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use USB camera with NI cRIO 9022, please see my strange problem.

Hi,

 

        I would like to use a USB camera with NI cRIO 9022. I used the same USB camera with NI USB 6216 DAQ device and developed a VI(within a PROJECT and outside it). So, It is working fine with NI USB 6216 device when I use the Vision Assistant Express VI and gets detected in its Initialization Window.  Please see JPEG File 3 where I get NO ERROR.

 

        I am facing a problem when I want to use it with NI cRIO 9022. What exactly I am doing in this case is:

 

1) Create a NEW PROJECT

2) Add Targets and Devices(NI cRIO 9022)

3) Use the Scan Interface mode

4) Create a NEW VI under the cRIO 9022 device 

5) Use a Timed Loop(Synchronized with Scan Engine) for continuous Data Acquisition and Sending from the Analog I/O modules.

6) Use the Vision Assistant available through the NI Vision Acquisition 2010 Module(I get STUCK HERE! The Express VI opens the Initialization Window, but I don't see the USB camera like in JPEG File 3)

 

I am facing difficulties with this HOST COMPUTER, cRIO implementation differences. On my host computer I have the software packages as shown in JPEG File 1, and on my cRIO 9022 as shown in JPEG File 2.

 

Can someone guide me how to overcome this and get the USB camera detected when I am using NI cRIO 9022?

 

NOTE: If this is a problem with software mismatches on HOST and NI cRIO 9022 device, please see JPEG Files 1 and 2 for available software and Host and cRIO 9022.

 

Thanks.

 

 

 

Amar.

0 Kudos
Message 1 of 5
(3,778 Views)

Are you plugging your USB camera into the PC or the cRIO?  It should work fine on the PC, but it would probably never work on the cRIO.  The cRIO doesn't have the drivers for it and you can't put them on it.

 

So, if your USB camera is plugged into the PC, please explain your problem with more details.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 5
(3,770 Views)

Hello Mr. Bruce,

 

                          I have attached a file with my problems described with images. And I am always connecting my USB camera to the Host Computer, not the cRIO. Please take a look at the document I attached. Thanks.

 

Amar Makana.

0 Kudos
Message 3 of 5
(3,762 Views)

When you select My Computer, you are running the program on the PC.  In this case, the camera works because it is connected to the PC.  The scan engine doesn't work because it needs to run on the cRIO, not the PC.

 

When you create the program on the cRIO, you can use the scan engine because the program is on the cRIO.  You can't use the camera because it is back on the PC, and can't be found on the cRIO.

 

The project is a wonderful tool, but it may be making the programming seem too simple.  It may not be clear to you that by moving a program to a different location (PC or cRIO), it is running in an entirely different environment on a totally different machine, even though it is just a little further down in the project.  You can't easily access the hardware on one machine while running the program on the other.

 

So the summary is:  The camera is attached to the PC.  The scan engine runs on the cRIO.  Never the twain shall meet.

 

Bruce

Bruce Ammons
Ammons Engineering
Message 4 of 5
(3,756 Views)

Mr. Bruce,

 

                       I had the same feeling that the hardware connected on the PC can't be that easily accebile by the cRIO and even the Scan Engine. Thanks for explaining the restrictions in detail.

 

                       I had suggestions to use a GigE based camera to be connected to the cRIO so that it can be easily accessed. I will do that now and get this issue solved.

 

Amar.

0 Kudos
Message 5 of 5
(3,754 Views)