Start of trail Setting up to use the HIL C API on Linux navigation bar

Table of Contents

Setting up to use the HIL C API in Windows

The user needs to follow a set of steps to setup the C/C++ application to use the HIL C API. For Windows platforms, we assume that Microsoft Visual Studio 2005 or later version is being used to develop the application. Please perform the following procedure to setup your application, once in the Microsoft Visual Studio environment. These instructions assume that QUARC or the Quanser SDK has already been installed.

  1. Open the Property Pages window by right-clicking on the project containing your application and choosing the Properties menu item in the context menu. The following figure illustrates this window.

    Property Pages Window

  2. In the Property Pages window, click on the C/C++ pane. The first parameter in this pane is called Additional Include Directories. Type in $(QSDK_DIR)include in its field as shown in the figure below. Note that QSDK_DIR is an environment variable referring to the directory in which the HIL API has been installed.

    Property Pages Window

  3. Click on the Linker pane and expand its treeview. In the General section of this pane, there is a parameter called Additional Library Directories. For the Win32 platform, type in $(QSDK_DIR)lib\windows in its field as shown in the figure below. For the x64 platform, use $(QSDK_DIR)lib\win64 instead, since the code must be linked with 64-bit versions of the QUARC libraries in that case.

    Property Pages Window

  4. While in the Linker pane, click on the Input section. The first parameter in this section is called Additional Dependencies. Type in hil.lib quanser_runtime.lib quanser_common.lib in this field as illustrated in the following figure. Note that the entries in this field should each be separated by a single space.

    Property Pages Window

  5. Once all these changes are made, click on Apply and then OK.

 

navigation bar