Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET Attribute CAmera

Hi
I am developping a program in DotNet using a LineScan Dalsa Camera.
I have the ICd file and i can acquire frame. However in dotNet it is impossible to send serial frame to the camera like in CVI or LV ( imgSessionSerialWrite )!!!!
With the CWIMAQ.SetProperty method i cannot set the exposure time!!! In The ICD file the property exists!

What is the way to change camera property in IMAQ!

Thanks
0 Kudos
Message 1 of 6
(4,015 Views)
Have you looked at the CWIMAQ.set_CameraAttribute() function yet?
Alex Person
NI-RIO Product Support Engineer
National Instruments
0 Kudos
Message 2 of 6
(3,974 Views)

hi

Yes i use this function...
i want to send serial frames in dotnet to use custom property .
We do not have a method for that like in CVI (imgSessionSerialWrite and imgSessionSerialRead)?

Thanks

 

0 Kudos
Message 3 of 6
(3,964 Views)

I have already try to create a DLL in CVI and pass th SessionID of the CWIMAQ object as the handle of the acquisition.
I have tried to send frames in CVI with the functions above

 

0 Kudos
Message 4 of 6
(3,963 Views)

Hi Kikou:

 

I guess I'm not sure what the current issue is.  Are you not able to use the CWIMAQ.set_CameraAttribute() function?  That should be the .NET equivalent to imgSessionSerialWrite.  Please let us know if you are experiencing problems with this function.

Alex Person
NI-RIO Product Support Engineer
National Instruments
0 Kudos
Message 5 of 6
(3,936 Views)

Hi

The method CWIMAQ_SetCameraAttribute allows us to get attribute specified in the icd file of the camera.
This function works and the problem i have is i think due to the camera.
Indeed, you cannot set for instance the exposure time before setting the video mode...

 

Another problem, if i want to recover custom property like  the temperature of my CCD , i need to send serial frames. In DotNet API these function do not exist lilke LV or CVI...

I have another issue:
I want to dynaically set the ROI of my acwuisition Image. I cannot specifie a number of lines or columns (width or height) superior to the MAX configuration.
To do that i have to change programaticaly the icd file it is very amazing!

Thanks

 

0 Kudos
Message 6 of 6
(3,924 Views)