# GetSampleInfo()

Returns the sample interval, sample count, and the date and time of the first data point in a binary file.

Member of the DataLogger class.

## Function Prototype

VB .NET

Public Function GetSampleInfo(ByRef sampleInterval As Integer, ByRef sampleCount As Integer, ByRef startDate As Integer, ByRef startTime As Integer) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo GetSampleInfo(ref int sampleInterval, ref int sampleCount, ref int startDate, ref int startTime)

## Parameter

sampleInterval

The time, in seconds, between samples.

sampleCount

The number of samples contained in the file.

startDate

The date of the first data point logged in the file. Date values are packed in the following format:

Byte 0: day
Byte 1: month
Byte 2 - 3: year

startTime

The time when the first data point was logged in the file. Time values are packed in the following format:

Byte 0: seconds
Byte 1: minutes
Byte 2: hours
Byte 3: 0xff = 24hour format, 0x0 = AM, 0x1 = PM

## Returns

- An ErrorInfo object that indicates the status of the operation.
- sampleInterval – Returns the time, in seconds, between samples.
- sampleCount – Returns the number of samples in the file.
- startData – Returns the date of the first data point logged in the file.
- startTime – Returns the time when the first data point was logged in the file.

## Notes

- Time stamped data is returned according to the timeZone and timeFormat preferences. Refer to SetPreferences() for more information.