Prosoft-technology MVI69-ADM Uživatelský manuál Strana 270

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 342
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 269
CIP Messaging Library Functions MVI-ADM 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module
Page 270 of 342 ProSoft Technology, Inc.
February 20, 2013
10.3 CIP API Initialization Functions
MVIcip_Open
Syntax
int MVIcip_Open(MVIHANDLE *handle);
Parameters
handle
pointer to variable of type MVIHANDLE
Description
MVIcip_Open acquires access to the CIP Messaging API and sets handle to a
unique ID that the application uses in subsequent functions. This function must
be called before any of the other CIP API functions can be used.
Return Value
MVI_SUCCESS
API was opened successfully
MVI_ERR_REOPEN
API is already open
MVI_ERR_NODEVICE
backplane driver could not be accessed
Note: MVI_ERR_NODEVICE will be returned if the backplane device driver is not
loaded.
Example
MVIHANDLE handle;
if (MVIcip_Open(&handle)!= MVI_SUCCESS)
{
printf ("Open failed!\n");
}
else
{
printf ("Open succeeded\n");
}
See Also
MVIcip_Close (page 271)
After the API has been opened, MVIcip_Close should always be called before
exiting the application.
Zobrazit stránku 269
1 2 ... 265 266 267 268 269 270 271 272 273 274 275 ... 341 342

Komentáře k této Příručce

Žádné komentáře