Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Connection USB camera to LbView and Vision

I need to connect 1.3 Mpix USB camera to LabView.
This camera is operated by ccapi.dll. The manual attached.
Download All
0 Kudos
Message 1 of 16
(7,188 Views)
Hello Boris,

Thank you for contacting National Instruments. I looked at the two manuals that you posted. It looks like all the functions that you need to call at included in the CCAPI.dll. To use the camera with LabVIEW you will have to make calls to the functions in CCAPI.dll from LabVIEW. You can achieve this by using the "Call Library Function Node" located in the "Advanced" pallet in the "functions" pallet in LabVIEW. For an example of how to use call library function nodes, search for "Dlls" in the Example Finder (Help>>Find Examples...) in LabVIEW and look at "Call DLL.vi". I hope this helps you out. Have a great day!

Regards,
Nipun M
Applications Engineer
National Instruments
www.ni.com/support
0 Kudos
Message 2 of 16
(7,167 Views)
Thank you very much for you reply.
I built the VI, but still have a problem to get information from the camera. I will be very thankful to you if you can to examine the attached application and to give me your recommendations. Currently all dll functions in this VI are working and only CC_CaptureSingle replays “O” and does not fill in the output array with data.

Thank you in advance,
Boris
0 Kudos
Message 3 of 16
(7,139 Views)
Hi Boris, I send my LV code. Please help me.
Thanks
Kamal
0 Kudos
Message 4 of 16
(6,931 Views)
Hello Boris,

I looked through your vi, everything looks in order. The TimeOut period of 10 seconds should be plenty to capture an image. If the value returned from this function is 0 then some error has probably occurred. The API Manual lists some methods which can be use to check for different errors returned by the CC_CaptureSingle function. Section 3 of the manual lists techniques to handle errors. You can use the function GetLastError to get the error information. Bottom of Page 13 lists the possible Errors returned by this function. Hope this helps you out.

Nipun
0 Kudos
Message 5 of 16
(6,913 Views)
Nipun
Thanks for your suggations. My program working fine now.
Thanks
Kamal
Message 6 of 16
(6,887 Views)
How did you solve the problem? I meet the similar problems,the capture function can not capture image,please help me.
0 Kudos
Message 7 of 16
(5,972 Views)
Which camera used? I will try to answer you, in spite of finaly I've user anouther camera type (Lumenera). Please send also your VI. 
0 Kudos
Message 8 of 16
(5,958 Views)
the camera is FC-IN320 made in China, from the vi of attachment, if the functions work well, the return value of "output param" 2~5 are 8192(if the function work well , it will return FD_SUCCESSED, but the function only return 8192, because it return type is numeric). however "GetImageRawData" , it returns 4096, I think it means this function don't work.
0 Kudos
Message 9 of 16
(5,946 Views)

Hi,

Is your camera a USB camera?  If it is and it is Direct Show compliant you may want to consider using IMAQ for USB instead.  One other thing that may help you track down this error is to include error handling and then to run your code in Highlight execution.  If GetImageRawData is returning an invalid number then you may want to see if there is an error earlier in the program that is causing that error.  I hope this helps.

Have a great day
GG

 
0 Kudos
Message 10 of 16
(5,923 Views)