Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

General Overview of Functionality

This sample application provides an example of how one may use the FANDA SDK to develop a local interface to a device that uses the FANDA protocol.

Note that The FandaSDKSample project is a simple Visual Studio 2008 project which illustrates some basic data access capabilities of the FANDA SDK. This sample shows how to do the following:

  • Compile and link a C++ program to the FANDA SDK
  • Initialize the SDK library and query its version information
  • Connect to a Fairmount Automation controller and register for disconnect notifications
  • Retrieve the Network Definition Library (NDL) which describes the accessible data elements
  • Listen for and retrieve multicast variable data
  • Get and set network variable data

Version 4.5.230 of the FANDA SDK is included and consists of a runtime DLL (FANDASDK.dll), an import library (FANDASDK.lib), and a header file (FANDASDK.h). These are the files you will need to include in your applications which compile and link with the FANDA SDK.

To run the sample program, load the FandaSDKSample.sln solution file in Visual Studio 2008 and build the solution. Open a command prompt window to the directory containing the solution and issue the command “FandaSDKSample.exe ipaddress”, substituting the IP address of Fairmount Automation controller for ipaddress.

Note: Design Pad simulating a FANDA device can be used as the test target for this application.