Hi,
You'll have to give more details. I'll give you some general information.
The GPIB driver allows you to make function calls from different processes. Each process will have it own set of global variables.
To sincronize and communicate between process you'll have to use the OS services for Inter-Process Communication.
The NI-488.2 API provides a locking function (iblck) that allows you to restrict the access to a single process. The iblck limits the access to a GPIB interface or unit descriptor from other processes. Refer to the online help for more details.
hope this helps.
DiegoF.