# Universal Library example programs sorted by function call

UL function name | Example program name | Special features/notes
cbAConvertData() | ULAI04 ULAI06 |
cbAConvertPreTrigData() | ULAI09 ULEV03* |
cbACalibrateData() | None | No example programs at this time
cbAIn() cbAIn32() | ULAI01 ULAI11 ULGT01 |
cbAInScan() | ULAI02 ULAI03 ULAI04 ULAI05 ULAI06 ULAI10 ULAI12 ULAI13 ULAI14 ULAI15 ULAIO01 ULEV02* ULMM03 | FOREGROUND mode BACKGROUND mode with manual data conversion CONTINUOUS BACKGROUND mode EXTCLOCK mode SCALEDATA mode (ULAI15) Various sampling mode options
cbALoadQueue() | ULAI10 |
cbAOut() | ULAO01 ULAO03 | ULAO03 demonstrates difference between the BIDACUPDATEMODE settings UPDATEIMMEDIATE and UPDATEONCOMMAND. Board 0 must support BIDACUPDATEMODE.
cbAOutScan() | ULAO02 ULAO04 ULAIO01 ULEV04* | concurrent cbAInScan() and cbAOutScan() SCALEDATA mode (ULAO04)
cbAPretrig() | ULAI08 ULAI09 ULEV03* ULFI03 ULMM01 |
cbATrig() | ULAI07 ULMM01 |
cbC7266Config() | ULCT06 |
cbC8254Config() | ULCT01 |
cbC8536Config() | ULCT05 |
cbC8536Init() | ULCT05 |
cbC9513Config() | ULCT02 ULCT03 |
cbC9513Init() | ULCT02 ULCT03 ULCT04 |
cbCConfigScan() | CInScan02 CInScan03 | Demonstrates how to scan a counter input channel in decrement mode, and then write the data to an array. Board 0 must support counter scans. For CInScan03, board 0 must support counter scans in encoder mode.
cbCFreqIn() | ULCT04 |
cbCIn() | ULCT01 ULCT02 ULCT05 |
cbCIn32() cbCIn64() | ULCT06 ULCT07 | For ULCT07, board 0 must have an event counter.
cbCInScan() | CInScan01 CInScan02 CInScan03 | Demonstrates how to scan a range of counter channels and then write the data to an array. The board must support counter scans. For CInScan03, board 0 must support counter scans in encoder mode.
cbCLoad() | ULCT01 ULCT02 ULCT03 ULCT05 |
cbCLoad32() cbCLoad64() | ULCT06 ULCT07 | For ULCT07, board 0 must have an event counter.
cbCreateDaqDevice() | DaqDevDiscovery01 DaqDevDiscovery02 |
cbCStoreOnInt() | ULCT03 |
cbCStatus() | ULCT06 |
cbDaqInScan() | DaqInScan01 DaqInScan02 DaqInScan03 DaqSetTrigger01 | Demonstrates how to synchronously scan analog, counter, and thermocouple input channels, and digital input ports. Board 0 must support synchronous output.
cbDaqOutScan() | DaqOutScan01 | Demonstrates how to synchronously write to an analog output channel and digital output port in the background. Board 0 must support synchronous output.
cbDaqSetSetpoints() | DaqSetSetpoints01 | Demonstrates how to configure and use setpoints, including how to add the setpoint status to the scan list and perform asynchronous reads of the setpoint status. Board 0 must support cbDaqInScan().
cbDaqSetTrigger() | DaqSetTrigger01 | Demonstrates how to set up start and stop trigger events. Board 0 must support synchronous output.
cbDBitIn() | ULDI02 ULDI05 ULDI06 ULMBDI02 |
cbDBitOut() | ULDO02 ULDO05 ULMBDO02 |
cbDConfigBit() | ULDI06 |
cbDConfigPort() | ULDI01 ULDI02 ULDI03 ULDO01 ULDO02 ULDO05 ULEV01* ULEV03* ULEV04* |
cbDeclareRevision() | All examples. | All example programs use this function
cbDIn() | ULDI01 ULDI03 ULDI04 ULEV01* ULMBDI01 |
cbDInScan() | ULDI03 |
cbDOut() | ULDO01 ULDO02 ULDO04 ULDO05 ULEV03* ULEV04* ULMBDO01 ULMBDO02 |
cbDOutScan() | None | No example programs at this time
cbDisableEvent() cbEnableEvent() | ULEV01* ULEV02* ULEV03* ULEV04* | ON_EXTERNAL_INTERRUPT ON_DATA_AVAILABLE ON_PRETRIGGER ON_END_OF_OUTPUT_SCAN ON_SCAN_ERROR ON_END_OF_INPUT_SCAN
cbErrHandling() | All examples | All example programs use this function
cbFileAInScan() | ULFI01 ULFI02 | Demonstrates how to scan one or more A/D channels and store the samples in a disk file.
cbFilePretrig() | ULFI03 | Demonstrates how to stream data continuously to a streamer file until a trigger is received, then continue data streaming until the total number of samples minus the number of pretrigger samples is reached.
cbFileRead() | ULFI02 ULFI03 |
cbFlashLED() | ULFL01 | Flashes the onboard LED for visual identification. Board 0 must have an external LED.
cbFromEngUnits() | ULAO01 ULAO03 ULAI07 ULAI14 ULEV04* |
cbGetBoardName() | ULGT03 ULGT04 |
cbGetConfig() | ULGT03 ULGT04 ULTI01 ULTI02 |
cbGetDaqDeviceInventory() | DaqDevDiscovery01 | Discovers DAQ devices and assigns board numbers to the detected devices.
cbGetErrMsg() | ULGT01 |
cbGetNetDeviceDescriptor() | DaqDevDiscovery02 | Discovers network DAQ devices and assigns board numbers to the detected devices.
cbGetRevision() | None | No example programs at this time
cbGetStatus() | ULAI03 ULAI04 ULAI05 ULAI06 ULAI09 ULAIO01 ULCT03 ULDI03 |
cbGetTCValues() | DaqInScan03 | Demonstrates how to retrieve analog, thermocouple, and digital data from a synchronous scan operation. Board 0 must support synchronous input.
cbInByte() | None | No example programs at this time
cbInWord() | None | No example programs at this time
cbLogConvertFile() | ULLOG04 | Demonstrates how to convert a binary log file to a .CSV file.
cbLogGetAIChannelCount() | ULLOG02 ULLOG03 ULLOG04 | Demonstrates how to retrieve the number of analog channels contained in a binary log file.
cbLogGetAIInfo() | ULLOG03 | Demonstrates how to retrieve information about the analog input data contained in a binary log file and then write the data to an array.
cbLogGetCJCInfo() cbLogGetDIOInfo() | ULLOG02 ULLOG03 | Demonstrates how to retrieve information about the CJC temperature data and digital I/O channel data contained in a binary log file.
cbLogGetFileInfo() | ULLOG02 | Demonstrates how to retrieve the version level and byte size of a binary log file.
cbLogGetFileName() | ULLOG01 ULLOG02 ULLOG03 | Demonstrates how to retrieve the name of a binary log file.
cbLogGetPreferences() | None | No example programs at this time
cbLogGetSampleInfo() | ULLOG02 ULLOG03 ULLOG04 | Demonstrates how to retrieve the sample interval, sample count, and the date and time of the first data point logged in a binary file.
cbLogReadAIChannels() cbLogReadCJCChannels() cbLogReadDIOChannels() cbLogReadTimeTags() | ULLOG03 | Demonstrates how to retrieve analog input data, CJC data, DIO channel data, and date/time values contained in a binary log file, and store the data in separate arrays.
cbLogSetPreferences() | ULLOG03 | Demonstrates how to stores preference settings for time stamp data, analog data, and CJC temperature data.
cbMemRead() | ULMM01 ULMM02 ULMM03 |
cbMemReadPretrig() | ULMM01 |
cbMemReset() | ULMM03 |
cbMemSetDTMode() | None | No example programs at this time
cbMemWrite() | ULMM02 |
cbOutByte() | None | No example programs at this time
cbOutWord() | None | No example programs at this time
cbRS485() | None | No example programs at this time
cbPulseOutStart() cbPulseOutStop() | PulseOutStart01 | Demonstrates how to start and stop a timer square wave output. Board 0 must have a timer output. You enter a frequency and a duty cycle within the timer range.
cbReleaseDaqDevice() | DaqDevDiscovery01 DaqDevDiscovery02 |
cbScaledWinArrayToBuf() | None | No example programs at this time.
cbScaledWinBufAlloc() cbScaledWinBufToArray() | ULAI15 | Demonstrates how to store scaled data in an array.
cbSetConfig() | ULAO03 | Demonstrates the difference between BIDACUPDATEMODE settings of UPDATEIMMEDIATE and UPDATEONCOMMAND. Board 0 must support BIDACUPDATEMODE settings.
cbSetTrigger() | ULAI14 |
cbStopBackground() | ULAI03 ULAI04 ULAI05 ULAI06 ULAI09 ULAIO01 ULCT03 ULDI03 ULEV02* ULEV03* ULEV04* | concurrent cbAInScan() and cbAOutScan()
cbTIn() | ULTI01 |
cbTInScan() | ULTI02 |
cbTimerOutStart() cbTimerOutStop() | TimerOutStart01 | Demonstrates how to start and stop a timer square wave output. Board 0 must have a timer output. You enter a frequency within the timer's range.
cbToEngUnits() cbToEngUnits32() | ULAI01 ULAI07 ULAI11 ULEV02* ULEV03* |
cbVIn() cbVIn32() | VIn01 | Demonstrates how to read an A/D input channel.
cbVOut() | VOut01 | Demonstrates how to write to a D/A output channel.
cbWinBufAlloc() cbWinBufAlloc32() cbWinBufAlloc64() cbWinBufFree() cbWinBufToArray() cbWinBufToArray32() | ULAI02 ULAI03 ULAI04 ULAI05 ULAI06 ULAI08 ULAI09 ULAI10 ULAI12 ULAI13 ULAI14 ULAI15 ULAIO01 ULAO02 ULCT03 ULDI03 ULEV02* ULEV03* ULEV04* | ULEV04 features cbWinBufAlloc() and cbWinBufFree() only
cbWinArrayToBuf() | ULAIO01 ULAO02 ULEV04* |
cbWinBufAlloc32() | CInScan01 CInScan02 | Demonstrates how to allocate a Windows global memory buffer for use with 32-bit scan functions.
cbWinBufToArray32() | CInScan01 CInScan02 | Demonstrates how to copy 32-bit data from a Windows memory buffer into an array.
* Example programs ULEV01, ULEV02, ULEV03 and ULEV04 are not available for the C Console. ULEV04 is only available for Visual Basic for Windows.