DNx-SL-514 Synchronous Serial Interface Board
Chapter 2
13
Programming with the High-Level API
May 2018
www.ueidaq.com
508.921.4600
© Copyright 2018
United Electronic Industries, Inc.
Chapter 2
Programming with the High-Level API
This chapter provides the following information about using the UeiDaq
Framework High-level API to control the DNx-SL-514:
•
About the High-level Framework (Section 2.1)
•
Creating a Session (Section 2.2)
•
Configuring the Resource String (Section 2.3)
•
Configuring an SSI Master Port (Section 2.4)
•
Configuring an SSI Slave Port (Section 2.5)
•
Configuring Minimum Pulse Widths (Section 2.6)
•
Configuring the Timing (Section 2.7)
•
Configuring Timestamps (Section 2.8)
•
•
•
Cleaning-up the Session (Section 2.11)
2.1
About the
High-level
Framework
UeiDaq Framework is object oriented and its objects can be manipulated in the
same manner from different development environments, such as Visual C++,
Visual Basic, or LabVIEW.
UeiDaq Framework is bundled with examples for supported programming
languages. Examples are located under the UEI programs group in:
•
Start » Programs » UEI » Framework » Examples
The following sections focus on C++ API examples, but the concept is the same
regardless of which programming language you use.
Please refer to the “UeiDaq Framework User Manual” for more information on
use of other programming languages.
2.2
Creating a
Session
The Session object controls all operations on your PowerDNx device. Therefore,
the first task is to create a session object:
// create a session object for input, and a session object for output
CUeiSession ssiSession;