Using the API in LabVIEW - intrepidcs API
Overview - Steps
to use in LabVIEW
The intrepidcs API packages all of the WIN32 methods into LabVIEW sub VIs. These sub VIs make it easy for you to use neoVI with National Instruments LabVIEW. These sub VIs appear in your LabVIEW functions palette like any other LabVIEW VIs.
Most of the LabVIEW Sub VI's are directly related to the intrepidcs API WIN32 equivalents. Table 1 gives a brief description of each VI. A major point about the VIs, is that instead of message structures, the LabVIEW VIs use an array of bytes to represent messages.

Figure 1 - neoVI LabVIEW VIs in the LabVIEW function palette.
Table 1 - neoVI VIs
| VI | Description |
| neoOpenPort | Calls the OpenPort method |
| neoCreateReadBuf | Creates a buffer of 20,000 messages to be used in GetMessages. |
| neoMessageToString | Example of how to take a message and build a string representation of it. |
| neoGetErrors | Calls the GetErrorMessages method. |
| neoTxCANMessage | Calls the TxMessages method. The VI interface is setup to transmit a CAN type message. |
| neoPutLong | Used to set integer (int32) values in a message byte array. |
| neoTxJMessage | Calls the TxMessages method. The VI interface is setup to transmit a non-CAN type message. |
| neoClosePort | Calls the ClosePort and FreeObject method. |
| neoGetLong | Used to get long values (int32) from a message byte array. |
| neoReadMessages | Calls the GetMessages method. |
1) Create a sub-directory in the LabVIEW user library subdirectory (..\LabVIEW\USER.LIB\) called neoVI. Copy the neoVI VIs in labv_neo.zip (168 Kb) to the subdirectory (figure 2).

Figure 2 - the neoVI VIs installed into a user
directory
2) Access the neoVI VIs like other LabVIEW VIs in the LabVIEW function palette. The VIs are located in the User Libraries section (Figure 3) of the functions palette.

Figure 3 - neoVI VIs in the LabVIEW function palette.
3) Use the standard LabVIEW help and this help file to help you develop your application (figure 4).

Figure 4 - The LabVIEW help window displays
help on neoVI VIs.
Please see the LabVIEW example for more information on using the intrepidcs API with LabVIEW.
| intrepidcs API Documentation - (C) Copyright 2000-2009 Intrepid Control Systems, Inc. (www.intrepidcs.com) |
Last Updated : Tuesday, April 24, 2001