# cbLogGetAIInfo()

Returns the channel number and unit value of each analog input channel logged in a binary file.

## Function Prototype

C/C++

int cbLogGetAIInfo(char* Filename, int* ChannelNumbers, int* Units)

Visual Basic

Function cbLogGetAIInfo(ByVal Filename$, ByRef ChannelNumbers&, ByRef Units&) As Long

## Arguments

Filename

The name of the file to retrieve the information.

ChannelNumbers

An array that contains the analog input channel numbers logged in the file.

Units

An array that contains the unit values set for the device in InstaCal for each analog input channel logged in the file.

## Returns

- Error code or 0 if no errors
- ChannelNumbers – Returns the analog input channel numbers logged in the binary file.
- Units – Returns the unit values set for the device in InstaCal for each analog input channel logged in the binary file. Returned values include:
- 0 = Units_Temperature
- 1 = Units_Raw