PIPLX_Init

unsigned long PIPLX_Init (char *alias, char *storrage, unsigned long access, long *session, unsigned long *cardNumber, unsigned long timeout);

Purpose

Open an instrument specified by alias. The alias must be defined in resource database created using Pickering resource manager.

Parameters

Input
Name Type Description
alias char *

Alias representing device to open.
This alias needs to be defined in resource database generated by Pickering resource manager.

storrage char *

A pointer to file name of resource database created using Pickering resource manager. This name should be fully qualified path to prevent unexpected result. If empty, local resource database is used.

access unsigned long

Define card access type:
MULTIUSER_ACCESS        = 1,
EXCLUSIVE_ACCESS        = 2, // if someone else is using the card the error code access denied is returned
FORCE_EXCLUSIVE_ACCESS  = 3 // if more clients use card and no one of exclusive access then requirement will be forced and client gets exclusive access.

timeout unsigned long

Connection timeout in milliseconds.

Output
Name Type Description
session long (passed by reference)

Handle of current session.

cardNumber unsigned long (passed by reference)

Card number.

Return Value

Name Type Description
return unsigned long

Zero for success, or non-zero for error code.

References

Init and close
Client Bridge for LXI - Base module
Alphabetical Function Index
Hierarchical Function Index