PDA

View Full Version : how use ic imaging halcon extension in c#?



m.rafiei
September 21, 2014, 12:41:38
my sample program that exported on halcon hdev to c# is similar following:

HIChalcon.IcInitLibrary();
HIChalcon.IcCloseAll();

HIChalcon.IcGetAvailableVideoCaptureDevices(out hv_DeviceList, out hv_SerialsList);
HIChalcon.IcOpenDev(hv_DeviceList.TupleSelect(0), out hv_ID);

HIChalcon.IcGetAvailableVideoFormats(hv_ID, out hv_FormatList);
HIChalcon.IcSetVideoFormat(hv_ID, hv_FormatList.TupleSelect(0));

HIChalcon.IcSetPropertyAuto(hv_ID, "gain", 0);
HIChalcon.IcSetPropertyAuto(hv_ID, "exposure", 0);

HIChalcon.IcSetProperty(hv_ID, "exposure", -13);
HIChalcon.IcSetProperty(hv_ID, "gain", 500);
HIChalcon.IcSetGrabTimeout(hv_ID, 5000);
HIChalcon.IcSetExternalTrigger(hv_ID, 1);

************************************************** ************
my error is : Error 3 The name 'HIChalcon' does not exist in the current context c:\users\administrator\desktop\hdeveloptemplatewpf \source\trigger.cs 61 17 HDevelopTemplateWPF


please help me?

Stefan Geissler
September 22, 2014, 15:55:58
Hello

Currently the C# export is not implemented. C++ works.