LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

call dll in labview for capturing image from CCf15 Camera.

Hi All
I try to operete CCf15 camera by using LabVIEW. But I have problem to capture signal from camera. Here I send the code as attachment. Please have a look and give me suggation what can I have to do for capturing signal. I have problem in CC_CaptureSignal function. In labVIEW the function output is zero but accroding to manual it shoud be an integer.

I send code and user manual as attachment
Thanks
Regards
M. Kamal
Postgraduate student
School of MME
DCU
Ireland
0 Kudos
Message 1 of 5
(3,067 Views)
hello,

you use the CC_CaptureStatus function to determine the end of acquisition, the CC_CaptureWait may be more suitable, because CC_CaptureStatus only returns the status of the DAQ at the time this function is called. you get an nonzero value only if you call this function after the DAQ has finished.

if you set some breakpoints on the diagrams of CC_CaptureStatus.vi and CC_CaptureSingle.vi you will see that CC_CaptureStatus is called BEFORE CC_CaptureSingle, so i suggest to remove the CC_CaptureStatus.vi and add an extra frame after CC_CaptureSingle.vi calling CC_CaptureWait to wait for the DAQ to finish.

(only suggestions, i don't have a camera to test it)

best regards
chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 5
(3,067 Views)
Thanks for your suggestion. I will try accroding to your suggestion. I use third party dll. I don't know did they include extcode.h and labview.lib in their dll.
Accroding to external code manual in dll should have to use the extcode.h and labview.lib. Will labview (call library function)program work without this header file and .lib file.

Kamal
0 Kudos
Message 3 of 5
(3,068 Views)
hi,

i think so. as far as i remember you only need extcode.h and labview.lib to CREATE your own DLLs or CINs, not when calling them.

regards
chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 4 of 5
(3,067 Views)
Hi Karmal,
It looks that I have the same problem with C-CAM USB camera as you had. Did you find the solution?
Please advise.

Best regards,
Boris
0 Kudos
Message 5 of 5
(3,055 Views)