Code Generation produces the code that is necessary to perform the chosen measurement tasks within an HDevelop program. On the Code Generation tab you can choose between several options and change parameter names, which has a direct effect on the code that is generated.
First, you can choose to Initialize Acquisition or Initialize Calibration automatically in your code. Depending on whether you have previously used the Image Acquisition Assistant or the Calibration Assistant to acquire images or get calibration data, respectively, you can now decide whether you want the generated code from these assistants integrated in your code. Such an automatic integration of code results, for example, in the automatic opening of the framegrabber if Image Acquisition Assistant is activated. If code for image acquisition or calibration already exist, the checkboxes should be deactivated. If Image Acquisition Assistant or Calibration Assistant are not in use, Initialize Acquisition and Initialize Calibration are grayed out.
Under General Options, you can decide on the Alignment Method, that is, whether an alignment is needed for your application. To learn more about this advanced setting, please refer to the description in the section Alignment.
You can furthermore change variable names for
When you are finished changing parameters, click the Insert Code button under Measuring to generate the code.
Finally, integrate the code into your HDevelop program.