System and method for mapping driver level event function calls from a process-based driver level program to a session-based instrumentation control driver level system
First Claim
1. A computer-readable storage media which stores program instructions for mapping driver level event function calls from a first driver level library to a second driver level library in an instrumentation system including a computer system, wherein the program instructions implement the steps of:
- receiving a call from an application to a function in said first driver level library which enables interrupts, wherein said function in said first driver level library which enables interrupts includes one or more parameters, including a first parameter that determines whether interrupts should be enabled or disabled for a session to said first driver level library;
examining said first parameter of said function in said first driver level library which enables interrupts;
invoking an operation in said second driver level library which disables events if said first parameter indicates that interrupts should be disabled; and
invoking an operation in said second driver level library which enables events if said first parameter indicates that interrupts should be enabled.
0 Assignments
0 Petitions
Accused Products
Abstract
A system and method for enabling applications written for SICL driver level software to operate with a VISA system. The present invention maps driver level event function calls from the SICL driver level library to VISA resource operations. This enables a VISA system to operate in conjunction with applications written for the SICL I/O library. The SICL Driver level library provides a completely different methodology for enabling and handling events than does a VISA system. According to the present invention, the method verifies and translate session identifier parameters from SICL functions to corresponding session identifiers in a VISA system. The method also verifies and translates interrupt condition parameters from SICL to corresponding event types in VISA for numerous event functions. Further, the method examines parameters in various SICL event functions and invokes the appropriate VISA operations to perform the indicated functions. In many instances, the method of the present invention is required to invoke multiple VISA operations to perform the desired functions indicated by a single SICL function. The method of the present invention performs many other operations necessary to map SICL event commands to the appropriate VISA operations.
-
Citations
43 Claims
-
1. A computer-readable storage media which stores program instructions for mapping driver level event function calls from a first driver level library to a second driver level library in an instrumentation system including a computer system, wherein the program instructions implement the steps of:
-
receiving a call from an application to a function in said first driver level library which enables interrupts, wherein said function in said first driver level library which enables interrupts includes one or more parameters, including a first parameter that determines whether interrupts should be enabled or disabled for a session to said first driver level library; examining said first parameter of said function in said first driver level library which enables interrupts; invoking an operation in said second driver level library which disables events if said first parameter indicates that interrupts should be disabled; and invoking an operation in said second driver level library which enables events if said first parameter indicates that interrupts should be enabled. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer-readable storage media which stores program instructions for mapping driver level event function calls from a first driver level library to a second driver level library in an instrumentation system including a computer system, wherein the program instructions implement the steps of:
-
receiving a call to a function in said first driver level library which disables execution of interrupt handlers for a plurality of sessions in a first process; maintaining a data structure comprising sessions to said second driver level library which correspond to said first process; examining said data structure to determine which sessions are enabled for said first process in response to receiving said call to said function in said first driver level library which disables execution of interrupt handlers; and invoking an operation in said second driver level library which suspends execution for all enabled events in each of said sessions to said second driver level library which correspond to said first process after said step of examining. - View Dependent Claims (9, 10, 11, 12, 13)
-
-
14. A computer-readable storage media which stores program instructions for mapping driver level event function calls from a first driver level library to a second driver level library in an instrumentation system including a computer system, wherein the program instructions implement the steps of:
-
receiving a call to a function in said first driver level library which enables execution of interrupt handlers for a plurality of sessions in a first process; maintaining a data structure comprising sessions to said second driver level library which correspond to said first process; examining said data structure to determine which sessions are enabled for said first process in response to receiving said call to said function in said first driver level library which enables execution of interrupt handlers; and invoking an operation in said second driver level library which enables execution of all enabled events in each of said sessions to said second driver level library which correspond to said first process after said step of examining. - View Dependent Claims (15, 16, 17, 18, 19, 20)
-
-
21. A computer-readable storage media which stores program instructions for mapping driver level event function calls from a first driver level library to a second driver level library in an instrumentation system including a computer system, wherein the program instructions implement the steps of:
-
receiving a call to a function from an application, wherein said function is comprised in said first driver level library and operates to install a first interrupt handler for use by said application, wherein said second driver level library cannot call said first interrupt handler in said application, wherein said first driver level library further includes a function which enables interrupt conditions, wherein said function which enables interrupt conditions and said function which installs said first interrupt handler may be called in any order in said first driver level library; determining if said function in said first driver level library which enables interrupt conditions has already been called; invoking an operation in said second driver level library which enables interrupt conditions only if said function in said first driver level library which enables interrupt conditions has already been called installing a second handler in said application which is callable by said second driver level library, wherein said second handler calls said first interrupt handler. - View Dependent Claims (22, 23, 24, 25, 26, 27, 28)
-
-
29. A computer-readable storage media which stores program instructions for mapping driver level event function calls from a first driver level library to a second driver level library in an instrumentation system including a computer system, wherein the program instructions implement the steps of:
-
receiving a call to a function from an application, wherein said function is comprised in said first driver level library and operates to install a first interrupt handler for use by said application for service requests (SRQs), wherein said second driver level library cannot call said first interrupt handler in said application, wherein said function in said first driver level library which installs an interrupt handler includes a parameter which references a procedure to be installed as said interrupt handler; determining if said parameter references a valid procedure to be installed as said first interrupt handler; invoking an operation in said second driver level library which installs a second interrupt handler if said parameter references a valid procedure to be installed as said first interrupt handler, wherein said second interrupt handler is callable by said second driver level library, wherein said second interrupt handler calls said first interrupt handler; and invoking an operation in said second driver level library which uninstalls an interrupt handler if said procedure does not reference a valid procedure to be installed as said interrupt handler; invoking an operation in said second driver level library which enables interrupt conditions for service requests (SRQs) if said parameter references a valid procedure to be installed as said first interrupt handler; and invoking an operation in said second driver level library which disables interrupt conditions for service requests (SRQs) if said parameter does not reference a valid procedure to be installed as said first interrupt handler. - View Dependent Claims (30, 31, 32)
-
-
33. A computer-readable storage media which stores program instructions for mapping driver level event function calls from a first driver level library to a second driver level library in an instrumentation system including a computer system, wherein the program instructions implement the steps of:
-
receiving a call from an application to a function in said first driver level library which installs an error handler in said application for sessions which correspond to a first process; determining which sessions to said second driver level library corresponding to said first process are opened; examining a parameter in said function which references said error handler to determine if said parameter references a valid error handler; invoking an operation in said second driver level library which uninstalls an error handler from said sessions to said second driver level library if said parameter does not reference a valid error handler; invoking an operation in said second driver level library which installs said error handler for said sessions in said process if said parameter references a valid error handler. - View Dependent Claims (34, 35, 36, 37, 38, 39)
-
-
40. A computer-readable storage media which stores program instructions for mapping driver level event function calls from a first driver level library to a second driver level library in an instrumentation system including a computer system, wherein the program instructions implement the steps of:
-
receiving a call to a function in said first driver level library which enables execution of interrupt handlers for a plurality of sessions in a first process; maintaining a data structure comprising sessions to said second driver level library which correspond to said first process; examining said data structure to determine which sessions are enabled for said first process; and invoking a plurality of operations in said second driver level library which enable execution of all enabled events in each of said sessions to said second driver level library which correspond to said first process. - View Dependent Claims (41)
-
-
42. A computer-readable storage media which stores program instructions for mapping driver level event function calls from a first driver level library to a second driver level library in an instrumentation system including a computer system, wherein the program instructions implement the steps of:
-
receiving a call to a function in said first driver level library which disables execution of interrupt handlers for a plurality of sessions in a first process; maintaining a data structure comprising sessions to said second driver level library which correspond to said first process; examining said data structure to determine which sessions are enabled for said first process; and invoking a plurality of operations in said second driver level library which suspend execution for all enabled events in each of said sessions to said second driver level library which correspond to said first process. - View Dependent Claims (43)
-
Specification