User`s guide
Universal Library User's Guide Universal Library for .NET Description & Use
23
GetFileName() retrieves the name of the n
th
file in the directory containing binary log files.
GetPreferences retrieves API preference settings for time stamp data, analog temperature data, and CJC
temperature data. Returns the default values unless changed using SetPreferences().
GetSampleInfo() retrieves the sample interval, sample count, and the date and time of the first data point
in a binary file.
ReadAIChannels() retrieves analog input data from a binary file, and stores the values in an array.
ReadCJCChannels() retrieves CJC temperature data from a binary file, and stores the values in an array.
ReadDIOChannels()retrieves digital I/O channel data from a binary file, and stores the values in an array.
ReadTimeTags() retrieves date and time values logged in a binary file. This method stores date values in
the dateTags array, and time values in the timeTags array.
SetPreferences() sets formatting preferences for returned time stamp data, analog data, and CJC
temperature data.
The following code examples demonstrate how to use the GetFileName()method from within a Universal
Library program to retrieve the name of a binary log file:
Visual Basic
Status = DataLogger.GetFileName(MccService.GetFirst, path, filename)
C#
status = DataLogger.GetFileName(MccService.GetFirst, ref path,
ref filename);
MccDaq enumerations
The MccDaq Namespace contains enumerated values which are used by many of the methods available from
the MccDaq classes (see Table 1). Refer to specific method descriptions in the Universal Library Function
Reference for the values of each enumerated type. This document is available on our web site at
www.mccdaq.com/PDFmanuals/sm-ul-functions.pdf.
Table 1. MccDaq Enumerated Values
Enumeration Name
Description
MccDaq.BCDMode
Lists BCD mode options (enabled/disabled).
MccDaq.C8254Mode
Lists all of the operating modes for 8254 counters.
MccDaq.C8536OutputControl
Lists all of the types of output from an 8536 counters.
MccDaq.C8536TriggerType
Lists all of the options for specifying the trigger type for 8536 counters.
MccDaq.C9513OutputControl
List all of the types of output from a 9513 counters.
MccDaq.CompareValue
List all options for comparing values while configuring a 9513 counter.
MccDaq.ConnectionPin
Defines the connector pins to associate with the signal type and direction
when calling the SelectSignal() method.
MccDaq.CounterControl
Defines the possible state of each counter channel (enabled/disabled).
MccDaq.CountDirection
Defines the count direction when configuring counters.
MccDaq.CountEdge
Defines the edge used for counting.
MccDaq.CounterRegister
Lists all of the register names used to load counters.
MccDaq.CounterSource
Lists all counter input sources.
MccDaq.CountingMode
Lists all valid modes for a C7266 counter configuration.
MccDaq.CtrlOutput
Lists all of the options for linking counter 1 to counter 2.
MccDaq.DACUpdate
Defines the available DAC update modes
MccDaq.DataEncoding
Lists the format of the data that is returned by a counter.
MccDaq.DigitalPortDirection
Configures a digital I/O port as input or output.
MccDaq.DigitalLogicState
Defines all digital logic states.
MccDaq.DigitalPortType
Defines all digital port types.
MccDaq.DTMode
Lists all modes to transfer to/from the memory boards.
MccDaq.ErrorHandling
Defines all error handling options.
MccDaq.ErrorInfo.ErrorCode
Defines all error constants.