Example UL for .NET program | Featured method | Notes | Other methods included |
CInScan01 |
CInScan() |
Scans a range of counter input channels, and writes the data to an array. Board 0 must support counter scans. |
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex()
WinBufToArray32()
WinBufFree()
WinBufFreeEx() |
CInScan02 |
CInScan()
CConfigScan() |
Scans a counter input channel in decrement mode, and writes the data to an array.
Board 0 must support counter scans. |
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex()
WinBufToArray32()
WinBufFree()
WinBufFreeEx() |
CInScan03 |
CInScan()
CConfigScan() |
Scans a counter input in encoder mode, and writes the sample data to an array. This example displays counts from encoder as phase A, phase B, and totalizes the index on Z.
Board 0 must support counter scans in encoder mode. |
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex()
WinBufToArray32()
WinBufFree()
WinBufFreeEx() |
DaqDevDiscovery01 | GetDaqDeviceInventory() |
Discovers DAQ devices and assigns board numbers to the detected devices. | CreateDaqDevice()
ReleaseDaqDevice() |
DaqDevDiscovery02 | GetNetDeviceDescriptor()
|
Discovers network DAQ devices and assigns board numbers to the detected devices. | CreateDaqDevice()
ReleaseDaqDevice() |
DaqInScan01 |
DaqInScan() |
Synchronously scans analog input channels, digital input ports and counter input channels in the foreground.
Board 0 must support synchronous input. |
DConfigPort() |
DaqInScan02 |
DaqInScan() |
Synchronously scans analog input channels, digital input ports, and counter input channels in the
background.
Board 0 must support synchronous input. |
DConfigPort()
GetStatus()
StopBackground() |
DaqInScan03 |
DaqInScan() GetTCValues()
| Synchronously scans analog input channels, digital input ports and thermocouple input channels in the foreground.
Board 0 must support synchronous input. |
DConfigPort() |
DaqOutScan01 |
DaqOutScan() |
Synchronously writes to an analog output channel and a digital output port in the background.
Board 0 must support synchronous output. |
DConfigPort() |
DaqSetSetpoints01 |
DaqSetSetpoints() | Configures setpoints, adds the setpoint status to the scan list, and performs asynchronous reads of the setpoint status.
Board 0 must support DaqInScan(). |
DaqInScan()
DConfigPort()
GetStatus()
StopBackground() |
DaqSetTrigger01 |
DaqSetTrigger() | Configures start and stop triggers. These triggers are used to initiate and terminate A/D conversion using DaqInScan() with the ExtTrigger option selected.
Board 0 must support synchronous output. |
DConfigPort()
GetStatus()
StopBackground() |
PulseOutStart01 |
PulseOutStart()
PulseOutStop() |
Sends a frequency output to an output timer channel. Board 0 must have a timer output.
You enter a frequency and a duty cycle within the timer's range. | |
TimerOutStart01 |
TimerOutStart()
TimerOutStop() |
Sends a frequency output to an output timer channel. Board 0 must have a timer output.
You enter a frequency within the timer's range. | |
ULAI01 |
AIn()
AIn32() |
|
ToEngUnits()
ToEngUnits32()
|
ULAI02 |
AInScan() |
Default mode |
WinBufToArray()
WinBufToArray32()
WinBufFree()
WinBufFreeEx()
WinBufAlloc()
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex() |
ULAI03 |
AInScan() |
Background mode |
GetStatus()
StopBackground()
WinBufToArray()
WinBufToArray32()
WinBufFree()
WinBufFreeEx()
WinBufAlloc()
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex() |
ULAI04 |
AConvertData() |
|
AInScan()
GetStatus()
StopBackground()
WinBufToArray()
WinBufToArray32()
WinBufFree()
WinBufFreeEx()
WinBufAlloc()
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex() |
ULAI05 |
AInScan() |
With manual data conversion |
GetStatus()
StopBackground()
WinBufToArray()
WinBufToArray32()
WinBufFree()
WinBufFreeEx()
WinBufAlloc()
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex() |
ULAI06 |
AInScan() |
Continuous Background mode |
AConvertData()
GetStatus()
StopBackground()
WinBufToArray()
WinBufToArray32()
WinBufFree()
WinBufFreeEx()
WinBufAlloc()
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex() |
ULAI07 |
ATrig() |
|
FromEngUnits() |
ULAI08 |
APretrig() |
|
WinBufToArray()
WinBufToArray32()
WinBufFree()
WinBufFreeEx()
WinBufAlloc()
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex() |
ULAI09 |
AConvertPretrigData() | Background |
APretrig()
GetStatus()
StopBackground()
WinBufToArray()
WinBufToArray32()
WinBufFree()
WinBufFreeEx()
WinBufAlloc()
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex() |
ULAI10 |
ALoadQueue() |
|
AInScan()
WinBufToArray()
WinBufToArray32()
WinBufFree()
WinBufFreeEx()
WinBufAlloc()
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex() |
ULAI11 |
ToEngUnits()
ToEngUnits32() |
|
AIn()
AIn32() |
ULAI12 |
AInScan() |
ExtClock mode |
WinBufToArray()
WinBufToArray32()
WinBufFree()
WinBufFreeEx()
WinBufAlloc()
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex() |
ULAI13 |
AInScan() |
Various sampling mode options |
WinBufToArray()
WinBufToArray32()
WinBufFree()
WinBufFreeEx()
WinBufAlloc()
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex() |
ULAI14 |
SetTrigger() |
ExtTrigger mode |
AInScan()
FromEngUnits()
WinBufToArray()
WinBufToArray32()
WinBufFree()
WinBufFreeEx()
WinBufAlloc()
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex() |
ULAI15 |
AInScan() |
ScaleData mode
Scans a range of A/D input channels, and stores the scaled data in an array. |
ScaledWinBufAlloc()
ScaledWinBufAllocEx()
ScaledWinBufToArray()
WinBufFree()
WinBufFreeEx() |
ULAIO01 |
AInScan()
AOutScan() |
Concurrent analog input and output scans |
GetStatus()
StopBackground()
WinArrayToBuf()
WinBufToArray()
WinBufToArray32()
WinBufFree()
WinBufFreeEx()
WinBufAlloc()
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex() |
ULAO01 |
AOut() |
|
FromEngUnits()
AOut() |
ULAO02 |
AOutScan() |
|
WinBufToArray()
WinBufToArray32()
WinBufFree()
WinBufFreeEx()
WinBufAlloc()
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex() |
ULAO03 |
AOut()
DacUpdate()
SetDACUpdateMode() | Demonstrates the difference between the DACUpdate.Immediate and DACUpdate.OnCommand D/A update modes. Board 0 must support DAC update mode settings. |
FromEngUnits() |
ULAO04 |
AOutScan() |
ScaleData mode
Synchronously writes to analog channels in the background. |
|
ULCT01 |
C8254Config() |
|
CLoad()
CLoad32()
CLoad64()
CIn()
CIn32()
CIn64() |
ULCT02 |
C9513Init()
C9513Config() |
|
CLoad()
CLoad32()
CLoad64()
CIn()
CIn32()
CIn64() |
ULCT03 |
CStoreOnInt() |
|
C9513Init()
C9513Config()
CLoad()
CLoad32()
CLoad64()
CIn()
CIn32()
CIn64() |
ULCT04 |
CFreqIn() |
|
C9513Init() |
ULCT05 |
C8536Init()
C8536Config() |
|
CLoad()
CLoad32()
CLoad64()
CIn()
CIn32()
CIn64() |
ULCT06 |
C7266Config() |
|
CLoad32()
CLoad64()
CIn32()
CIn64()
CStatus() |
ULCT07 |
CLoad32()
CLoad64()
CIn32()
CIn64() |
Board 0 must have an event counter, or scan counter that doesn't require configuration (such as the USB-1808). |
|
ULDI01 |
DIn() |
|
DConfigPort() |
ULDI02 |
DBitIn() |
|
DConfigPort() |
ULDI03 |
DInScan() |
|
DConfigPort()
GetStatus()
StopBackground()
WinBufToArray()
WinBufToArray32()
WinBufFree()
WinBufFreeEx()
WinBufAlloc()
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex() |
ULDI04 |
DIn() |
Using the AuxPort | |
ULDI05 |
DBitIn() |
Using the AuxPort | |
ULDI06 |
DConfigBit() |
|
DBitIn() |
ULDO01 |
DOut() |
|
DConfigPort() |
ULDO02 |
DBitOut() |
|
DOut()
DConfigPort() |
ULDO04 |
DOut() |
Using the AuxPort | |
ULDO05 |
DBitOut() |
Using the AuxPort |
DOut() |
ULEV01 |
EnableEvent()
DisableEvent() |
Using OnExternalInterrupt |
DConfigPort()
DIn() |
ULEV02 |
EnableEvent()
DisableEvent() |
Using OnDataAvailable and OnEndOfInputScan |
AInScan()
StopBackground()
ToEngUnits()
WinBufToArray()
WinBufToArray32()
WinBufFree()
WinBufFreeEx()
WinBufAlloc()
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex() |
ULEV03 |
EnableEvent()
DisableEvent() |
Using OnPretrig and OnEndOfInputScan |
APretrig()
AConvertPretrigData()
DConfigPort()
DOut()
StopBackground()
ToEngUnits()
WinBufToArray()
WinBufToArray32()
WinBufFree()
WinBufFreeEx()
WinBufAlloc()
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex() |
ULEV04 |
EnableEvent()
DisableEvent() |
Using OnEndOfOutputScan |
AOutScan()
DConfigPort()
DOut()
FromEngUnits()
StopBackground()
WinArrayToBuf()
WinBufAlloc()
WinBuffAlloc32()
WinBuffAlloc32Ex()
WinBuffAlloc64()
WinBuffAlloc64Ex()
WinBufFree()
WinBufFreeEx() |
ULFI01 |
FileAInScan() |
|
FileGetInfo() |
ULFI02 |
FileRead() |
|
FileAInScan()
FileGetInfo() |
ULFI03 |
FilePretrig() |
|
FileGetInfo()
FileRead() |
ULFL01 |
cbFlashLED() |
Board 0 must have an external LED. |
|
ULGT01 |
GetErrMsg() |
|
AIn() |
ULGT03 |
MccBoard class properties: BoardConfig, DIOConfig, ExpansionConfig |
Use MccBoard class properties to get configuration information for a board. |
GetBoardName() |
ULGT04 |
GetBoardName() |
| BoardName property
NumBoards property
|
ULLOG01 |
GetFileName() |
Retrieves the name of a binary log file. |
|
ULLOG02 |
GetFileInfo()
GetSampleInfo()
GetAIChannelCount()
GetCJCInfo()
GetDIOInfo() |
Retrieves analog data, CJC data, and digital port data contained in a binary log file. |
GetFileName() |
ULLOG03 |
ReadAIChannels()
ReadCJCChannels()
ReadDIOChannels()
ReadTimeTags() |
Retrieves the analog input data, CJC temperature data, digital I/O port data, date values, and time values logged in a binary file, and writes the data to separate arrays. |
GetFileName()
GetSampleInfo()
GetAIChannelCount()
GetCJCInfo()
GetDIOInfo()
SetPreferences() |
ULLOG04 |
ConvertFile() |
Converts a binary log file to a comma-separated values (.csv) text file or another text file format that you specify. |
GetSampleInfo() |
ULMM01 |
MemReadPretrig() | |
APretrig() |
ULMM02 |
MemRead()
MemWrite() |
| |
ULMM03 |
AInScan() |
With ExtMemory option |
MemReset()
MemRead() |
ULTI01 |
TIn() |
| |
ULTI02 |
TInScan() |
| |
VIn01 |
VIn()
VIn32() |
Reads an A/D input channel. | |
VOut01 |
VOut() |
Writes to a D/A output channel. | |