VirtualBench C Reference Help

Library Initialization

  • Updated2023-09-07
  • 1 minute(s) read

Library Initialization

For each thread you want to use, you must create and initialize an instance of the VirtualBench library. This is done as follows:

 niVB_LibraryHandle libHandle;
 niVB_InitializeWithVersion(NIVB_LIBRARY_VERSION, &libHandle);

You can close the handle by using the niVB_Finalize function:

 niVB_Finalize(libHandle);

Instrument-specific handles are initialized with a reference to a library handle. Once initialized, the library handle is associated with the instrument handle, and further uses do not require the specification of the library handle.