NI Bluetooth Toolkit Direct Test Mode

Table of Contents
  • Programming

niBTDTM_VISAOpenSession

int32 __stdcall niBTDTM_VISAOpenSession (char session[], niBTDTMSession* sessionOut);

Purpose

Opens a session of the device under test (DUT) specified by the session parameter, and returns a session identifier that can be used to call any other operations on that DUT.

Parameters

Input
Name Type Description
session char[] Specifies the name of the communication port to which the DUT is connected.
Output
Name Type Description
sessionOut niBTDTMSession* Returns the name of the communication port to which the DUT is connected.

Return Value

Name Type Description
returnValue int32 Returns the status code of this operation. The status code either indicates success or describes an error or warning. Examine the status code from each call to an niBTDTM function to determine if an error has occurred.

The general meaning of the status code is as follows:

Value Meaning
0 Success
Positive Values Warnings
Negative Values Errors

Log in to get a better experience