Miscellaneous Functions - Rockwell Automation Allen-Bradley ControlLogix 1756-MVI Programming Reference Manual

Multi-vendor interface module
Hide thumbs Also See for Allen-Bradley ControlLogix 1756-MVI:
Table of Contents

Advertisement

Miscellaneous Functions

MVIsp_GetVersionInfo
Syntax:
int
MVIsp_GetVersionInfo(MVISPVERSIONINFO *verinfo);
Parameters:
verinfo
pointer to structure of type MVISPVERSIONINFO
Description:
MVIsp_GetVersionInfo retrieves the current version of the API. The
version information is returned in the structure verinfo.
The MVISPVERSIONINFO structure is defined as follows:
typedef struct tagMVISPVERSIONINFO
{
WORD
APISeries;
WORD
APIRevision;
} MVISPVERSIONINFO;
Return Value:
MVI_SUCCESS
the version information was read successfully.
Example:
MVISPVERSIONINFO
/* print version of API library */
MVIsp_GetVersionInfo(&verinfo);
printf ("Library Series %d, Rev %d\n", verinfo.APISeries, verinfo.APIRevision);
/* API series */
/* API revision */
verinfo;
Publication 1756-RM004B-EN-P - October 2000
Serial Port API
5-35

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents