
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:
Status = DataLogger.GetFileName(MccService.GetFirst, path, filename)
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
Lists BCD mode options (enabled/disabled).
Lists all of the operating modes for 8254 counters.
MccDaq.C8536OutputControl
Lists all of the types of output from an 8536 counters.
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.
List all options for comparing values while configuring a 9513 counter.
Defines the connector pins to associate with the signal type and direction
when calling the SelectSignal() method.
Defines the possible state of each counter channel (enabled/disabled).
Defines the count direction when configuring counters.
Defines the edge used for counting.
Lists all of the register names used to load counters.
Lists all counter input sources.
Lists all valid modes for a C7266 counter configuration.
Lists all of the options for linking counter 1 to counter 2.
Defines the available DAC update modes
Lists the format of the data that is returned by a counter.
MccDaq.DigitalPortDirection
Configures a digital I/O port as input or output.
Defines all digital logic states.
Defines all digital port types.
Lists all modes to transfer to/from the memory boards.
Defines all error handling options.
MccDaq.ErrorInfo.ErrorCode
Defines all error constants.
Comentarios a estos manuales