Create A Session; Resource Strings - Ametek DN VR-608 Series User Manual

8-channel variable reluctance sensor interface for the powerdna cube and rack series chassis
Table of Contents

Advertisement

4.3
Create a
Session
//create a session object
CUeiSession vrSession;
4.4
Resource
Strings
© Copyright 2024
United Electronic Industries, Inc.
Each high-level example follows the same basic structure:

1. Create a session.

2. Configure the session for a particular device and subsystem.
3. Configure the timing.
4. Start the session.
5. Read or write data.
6. Stop the session.
The remainder of this chapter is intended as a supplement to the example code.
Examples are presented using C++ API, but the concepts are the same no
matter which programming language you use. The "UeiDaq Framework User
Manual" provides additional information about programming in other languages.
The session object manages all communications with the DNx-VR-608.
Therefore, the first step is always to create a new session.
The Framework uses a resource string to link the session to the hardware. The
resource string syntax is similar to a web URL; it should not have any spaces
and is case insensitive. The resource string is formatted as follows:
"<device class>://<IP address>/<device number>/<subsystem><channel list>"
<device class> – Set the device class to pdna.
<IP address> – IP address of the IOM.
<device number> – position of the DNx-VR-608 within the chassis,
relative to the other I/O boards.
<subsystem> – the DNx-VR-608 uses the VR subsystem.
<channel list> – desired channels, 0...7
For example, the following resource strings select variable reluctance channels
0, 1, 2, and 3 on device 2 at IP address 192.168.100.2:
"pdna://192.168.100.2/Dev2/Vr0,1,2,3"
"pdna://192.168.100.2/Dev2/Vr0:3"
February 2024
DNx-VR-608 Variable Reluctance Interface
Programming with the High-level API
Chapter 4
28
www.ueidaq.com
508.921.4600

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dna-vr-608Dnr-vr-608Dnf-vr-608

Table of Contents