Port States - UEi RACKtangle DNR-12-1G Series User Manual

Data acquisition systems
Table of Contents

Advertisement

int DAQLIB DqCmdSetLock(int Iom, uint8 Mode,char Password,uint32 *IP)
Parameters:
int Iom
uint8 Mode
char *Password
uint32 *IP
Table 4-1 Port States
Port
LOCK State
DQSETLOCK_UNLOCK
First
DQSETLOCK_LOCK
DQSETLOCK_DIAG
DQSETLOCK_UNLOCK
Second
DQSETLOCK_LOCK
DQSETLOCK_DIAG
© Copyright 2018
United Electronic Industries, Inc.
DNR-X-1G Series RACKtangle and HalfRACK Systems
The following standard DAQBIOS commands are accessible on the diagnostics
port whenever one or more I/O boards are in operating mode:
DQCMD_ECHO
DQCMD_RDCFG
DQCMD_RDSTS
DQCMD_WRCHNL (selected)//write channel
DQCMD_RDCHNL (selected)// read channel
DQCMD_IOCTL (selected) // ioctl() - low priority command
DQCMD_SETLOCK
Commands that are capable of changing the state of the running I/O boards will
not execute.
To switch a port into diagnostics mode, use the DqCmdSetLock API, as
described below:
// Pointer to the DQIOME structure
// Function mode (lock/unlock/check/diagnostics)
// password string; ignored (and can be NULL)
//
if Mode is DQSETLOCK_CHECK
// returns the IP address of the locking host
//
if Mode is DQSETLOCK_CHECK
<Mode> can be one of the following:
#define DQSETLOCK_LOCK0
#define DQSETLOCK_UNLOCK1
#define DQSETLOCK_CHECK2
#define DQSETLOCK_DIAG4
To advance a port into diagnostics mode, call this function with the <Mode>
parameter set to DQSETLOCK_DIAG. To return a port to normal mode, use the
same function call with DQSETLOCK_UNLOCK.
The following table describes the possible states of both ports:
First Port (NIC1)
Full functionality
Full functionality, locked to the
host
Diagnostic functionality only
Full functionality
All but state change functions
Full functionality
DQCMD_ECHO
This command returns information about the board(s) installed. Use of this
command is described in the PowerDNA API Reference Manual.
October 2018
Installation and Configuration
// echo
// read configuration (new)
// read status
// set/release port lock
// Lock IOM to host
// Unlock IOM
// Get locking host IP
// Switch to diagnostics
Full functionality
All but state change functions
Full functionality
Full functionality
Full functionality, locked to the
host
Diagnostics functionality only
Chapter 4
Second Port (NIC2)
www.ueidaq.com
508.921.4600
60

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents