ProSoft Technology MVI69-ADM User Manual

Page 190

Advertising
background image

Application Development Function Library - ADM API

MVI-ADM ♦ 'C' Programmable

Developer's Guide

'C' Programmable Application Development Module

Page 190 of 342

ProSoft Technology, Inc.

February 20, 2013

ADM_ReadScFile

Syntax

int ADM_ReadScFile(ADMHANDLE adm_handle, int verbose)

Parameters

adm_handle

Handle returned by previous call to ADM_Open

verbose

Switch to enable status messages to the debug port. A 1 will
enable messages and a 0 will disable the messages.

Description
This function reads SC_DATA.TXT file from C drive on a compact flash in the
module to select between using the backplane or the side-connect interface.

Return Value

> 4 and < 200

value for the side-connect used (valid value is 5 to 199).

0

value for the backplane used, value that is not between 5 to 199,
or if SC_DATA.TXT is not existed. Note: set verbose to 1 to see
message according to this return value.

ADM_ERR_NOACCESS

adm_handle does not have access.

Example

ADMHANDLE adm_handle;
int verbose = 1;
ADM_INTERFACE interface;
interface.cfg_file = ADM_ReadSCFile(adm_handle, verbose);

See Also
ADM_ScOpen (page 188)

Advertising