ni4133_Open
- Updated2025-11-18
- 1 minute(s) read
Opens session with a single channel on a PXIe-4133 instrument.
Syntax
ni4133_Status NI4133_DECL ni4133_Open(ni4133_LibraryHandle libraryHandle, const char *resourceName, const char *channel, ni4133_SessionHandle *sessionHandle)
Remarks
If you are building a DLL, do not call Open from DllMain or a C++ static initializer/destructor.
Parameters
| Name | Direction | Type | Description |
|---|---|---|---|
| libraryHandle | [in] | ni4133_LibraryHandle | Specifies the Library handle to the open session. |
| resourceName | [in] | const char * | Specifies the name of the active PXIe-4133 instrument. |
| channel | [in] | const char * | Associates an active channel with the new session. Valid values are 0 or 1. |
| sessionHandle | [out] | ni4133_SessionHandle * | Newly created session |
Returns
Reports the status of this operation.
To obtain a text description of the status code, call ni4133_GetErrorDescription. The general meaning of the status code is as follows:
Value | Meaning |
|---|---|
Positive Values | Warnings |
Negative Values | Errors |