C/C++ Eclipse Edition FAQs
- Updated2023-02-21
- 1 minute(s) read
Q: How do I view an image on an external display?
The remote target must have a video out port. Refer to the display API example that ships with Vision Development Module.
Q: How do I know what kind of processor is inside the remote target?
Open NI-MAX. Expand Remote Systems and find the remote target. View the System Settings.
Q: How do I handle errors?
Use the imaqgetlasterror function to return error codes. Details about error codes are available in nivision.h.
How do I use Eclipse to prototype an application on Windows?
Create a project under the C/C++ Eclipse workspace with the following Microsoft Visual C++ settings.
- Select Project»Properties»C/C++ Build»Settings»Tool Settings»Tool Settings»C Compiler(cl)»preprocessor.
- Enter <National Instruments>\Shared\ExternalCompilerSupport\C\include to Include paths (/l).
- Select Project»Properties»C/C++ Build»Settings»Tool Settings»Linker(link)»Libraries.
- Add nivision.lib to Libraries.
- Enter a file path in Additional Libpath(/libpath):
- Linux ARM-based targets
<National Instruments>\Shared\ExternalCompilerSupport\C\lib32\msvc - Linux x64-based targets
<National Instruments>\Shared\ExternalCompilerSupport\C\lib64\msvc
- Linux ARM-based targets