Using the neoVI API in LabWindows CVI - neoVI API
- 1.Copy the import library
icsnLW40.lib, header file
icsnLW40.h, and data structure file
icsspyData.hto your project directory.
- 2.Link to icsnLW40.lib import library by selecting Add Files To Project from the Edit pull down menu. In the “Add Files To Project” dialog select the icsnLW40.lib file (figure 1). You can also the headers from step 1 if you wish. Your project should now list the files you added (figure 2).
Figure 1 - Link to the “icsnLW40.lib”
Figure 2 - The project window with the library added.
3. Include the header icsnLW40.h in your C module (Figure 3).
Figure 3 - The #include statement in the C module.
A National Instruments LabWindows example (Figure 1) is included to show how the API all works together. The example files are included in the following file:
The example shows how to open and close communication to the driver, send messages and read messages on the networks.
Figure 4 - The LabWindows CVI Example.