ProSoft Technology MVI69-ADM User Manual

Page 198

Advertising
background image

Application Development Function Library - ADM API

MVI-ADM ♦ 'C' Programmable

Developer's Guide

'C' Programmable Application Development Module

Page 198 of 342

ProSoft Technology, Inc.

February 20, 2013

ADM_RAM_GetFloat

Syntax

float ADM_RAM_GetFloat (ADMHANDLE adm_handle, char huge * mydata, char *
Topic);

Parameters

adm_handle

Handle returned by previous call to ADM_Open

mydata

Pointer return from ADM_RAM_Find_Section.

Topic

Pointer to name of a variable.

Description
ADM_RAM_GetFloat tries to find the Topic name passed to the function in the
file.

Return Value
Value of a type Float found under the Topic name or 0 if the sub-section is not
found.

Example

module.time = ADM_RAM_GetFloat(adm_handle, tptr, "Time");
if(module.time < 0 || module.time > module.max_regs-61)
{
module.time = -1;
module.err_freq = 0;
}
else
{
module.err_freq = 500;
}

Advertising