Home
chm2web Web Online Help Prev Page Prev Page
NI-DAQmx C Reference Help
Additional Information
Troubleshooting
Related Documentation
Using Help
Conventions
Navigating Help
Searching Help
Printing Help File Topics
NI-DAQmx Concepts
NI-DAQmx C Functions
Task Configuration/Control
DAQmxAddGlobalChansToTask
DAQmxClearTask
DAQmxConfigureLogging
DAQmxCreateTask
DAQmxIsTaskDone
DAQmxLoadTask
DAQmxStartTask
DAQmxStartNewFile
DAQmxStopTask
DAQmxWaitUntilTaskDone
Events
DAQmxRegisterDoneEvent
DAQmxRegisterEveryNSamplesEvent
DAQmxRegisterSignalEvent
Advanced
DAQmxGetNthTaskChannel
DAQmxGetNthTaskDevice
DAQmxTaskControl
Channel Configuration/Creation
Create Analog Input Channels
DAQmxCreateAIAccelChan
DAQmxCreateAIBridgeChan
DAQmxCreateAICurrentChan
DAQmxCreateAICurrentRMSChan
DAQmxCreateAIForceBridgePolynomialChan
DAQmxCreateAIForceBridgeTableChan
DAQmxCreateAIForceBridgeTwoPointLinChan
DAQmxCreateAIForceIEPEChan
DAQmxCreateAIFreqVoltageChan
DAQmxCreateAIMicrophoneChan
DAQmxCreateAIPressureBridgePolynomialChan
DAQmxCreateAIPressureBridgeTableChan
DAQmxCreateAIPressureBridgeTwoPointLinChan
DAQmxCreateAIResistanceChan
DAQmxCreateAIRosetteStrainGageChan
DAQmxCreateAIRTDChan
DAQmxCreateAIStrainGageChan
DAQmxCreateAITempBuiltInSensorChan
DAQmxCreateAIThrmcplChan
DAQmxCreateAIThrmstrChanIex
DAQmxCreateAIThrmstrChanVex
DAQmxCreateAITorqueBridgePolynomialChan
DAQmxCreateAITorqueBridgeTableChan
DAQmxCreateAITorqueBridgeTwoPointLinChan
DAQmxCreateAIVelocityIEPEChan
DAQmxCreateAIVoltageChan
DAQmxCreateAIVoltageRMSChan
DAQmxCreateAIVoltageChanWithExcit
Position
DAQmxCreateAIPosEddyCurrProxProbeChan
DAQmxCreateAIPosLVDTChan
DAQmxCreateAIPosRVDTChan
Obsolete
DAQmxCreateAIDeviceTempChan
Create TEDS Analog Input Channels
DAQmxCreateTEDSAIAccelChan
DAQmxCreateTEDSAICurrentChan
DAQmxCreateTEDSAIBridgeChan
DAQmxCreateTEDSAIForceBridgeChan
DAQmxCreateTEDSAIForceIEPEChan
DAQmxCreateTEDSAIMicrophoneChan
DAQmxCreateTEDSAIPressureBridgeChan
DAQmxCreateTEDSAIResistanceChan
DAQmxCreateTEDSAIRTDChan
DAQmxCreateTEDSAIStrainGageChan
DAQmxCreateTEDSAIThrmcplChan
DAQmxCreateTEDSAIThrmstrChanIex
DAQmxCreateTEDSAIThrmstrChanVex
DAQmxCreateTEDSAITorqueBridgeChan
DAQmxCreateTEDSAIVoltageChan
DAQmxCreateTEDSAIVoltageChanWithExcit
Position
DAQmxCreateTEDSAIPosLVDTChan
DAQmxCreateTEDSAIPosRVDTChan
Create Analog Output Channel
DAQmxCreateAOCurrentChan
DAQmxCreateAOFuncGenChan
DAQmxCreateAOVoltageChan
Create Digital Input Channels
DAQmxCreateDIChan
Create Digital Output Channels
DAQmxCreateDOChan
Create Counter Input Channels
DAQmxCreateCICountEdgesChan
DAQmxCreateCIFreqChan
DAQmxCreateCIPeriodChan
DAQmxCreateCIPulseChanFreq
DAQmxCreateCIPulseChanTicks
DAQmxCreateCIPulseChanTime
DAQmxCreateCIPulseWidthChan
DAQmxCreateCISemiPeriodChan
DAQmxCreateCITwoEdgeSepChan
Position
DAQmxCreateCILinEncoderChan
DAQmxCreateCIAngEncoderChan
Timestamp
DAQmxCreateCIGPSTimestampChan
Create Counter Output Channels
DAQmxCreateCOPulseChanFreq
DAQmxCreateCOPulseChanTicks
DAQmxCreateCOPulseChanTime
Timing
DAQmxCfgBurstHandshakingTimingExportClock
DAQmxCfgBurstHandshakingTimingImportClock
DAQmxCfgChangeDetectionTiming
DAQmxCfgHandshakingTiming
DAQmxCfgImplicitTiming
DAQmxCfgPipelinedSampClkTiming
DAQmxCfgSampClkTiming
Triggering
Start Trigger
DAQmxCfgAnlgEdgeStartTrig
DAQmxCfgAnlgWindowStartTrig
DAQmxCfgDigEdgeStartTrig
DAQmxCfgDigPatternStartTrig
DAQmxDisableStartTrig
Reference Trigger
DAQmxCfgAnlgEdgeRefTrig
DAQmxCfgAnlgWindowRefTrig
DAQmxCfgDigEdgeRefTrig
DAQmxCfgDigPatternRefTrig
DAQmxDisableRefTrig
Advanced Trigger
DAQmxCfgDigEdgeAdvTrig
DAQmxDisableAdvTrig
DAQmxSendSoftwareTrigger
Read Functions
DAQmxReadAnalogF64
DAQmxReadAnalogScalarF64
DAQmxReadBinaryI16
DAQmxReadBinaryI32
DAQmxReadBinaryU16
DAQmxReadBinaryU32
DAQmxReadCounterF64
DAQmxReadCounterScalarF64
DAQmxReadCounterScalarU32
DAQmxReadCounterU32
DAQmxReadCtrFreq
DAQmxReadCtrFreqScalar
DAQmxReadCtrTicks
DAQmxReadCtrTicksScalar
DAQmxReadCtrTime
DAQmxReadCtrTimeScalar
DAQmxReadDigitalLines
DAQmxReadDigitalScalarU32
DAQmxReadDigitalU8
DAQmxReadDigitalU16
DAQmxReadDigitalU32
Advanced
DAQmxGetNthTaskReadChannel
DAQmxReadRaw
Write Functions
DAQmxWriteAnalogF64
DAQmxWriteAnalogScalarF64
DAQmxWriteBinaryI16
DAQmxWriteBinaryU16
DAQmxWriteCtrFreq
DAQmxWriteCtrFreqScalar
DAQmxWriteCtrTicks
DAQmxWriteCtrTicksScalar
DAQmxWriteCtrTime
DAQmxWriteCtrTimeScalar
DAQmxWriteDigitalLines
DAQmxWriteDigitalScalarU32
DAQmxWriteDigitalU8
DAQmxWriteDigitalU16
DAQmxWriteDigitalU32
Advanced
DAQmxWriteRaw
Export HW Signals
DAQmxExportSignal
Scale Configuration
DAQmxCalculateReversePolyCoeff
DAQmxCreateLinScale
DAQmxCreateMapScale
DAQmxCreatePolynomialScale
DAQmxCreateTableScale
Internal Buffer Configuration
DAQmxCfgInputBuffer
DAQmxCfgOutputBuffer
Advanced Functions
Real-Time
DAQmxWaitForNextSampleClock
Obsolete
DAQmxIsReadOrWriteLate
Switch Functions
DAQmxSwitchCloseRelays
DAQmxSwitchConnect
DAQmxSwitchConnectMulti
DAQmxSwitchCreateScanList
DAQmxSwitchDisconnect
DAQmxSwitchDisconnectAll
DAQmxSwitchDisconnectMulti
DAQmxSwitchFindPath
DAQmxSwitchGetMultiRelayCount
DAQmxSwitchGetMultiRelayPos
DAQmxSwitchGetSingleRelayCount
DAQmxSwitchGetSingleRelayPos
DAQmxSwitchOpenRelays
DAQmxSwitchSetTopologyAndReset
DAQmxSwitchWaitForSettling
Signal Routing
DAQmxConnectTerms
DAQmxDisconnectTerms
DAQmxTristateOutputTerm
Device Control
DAQmxResetDevice
DAQmxSelfTestDevice
Watchdog
DAQmxControlWatchdogTask
DAQmxCreateWatchdogTimerTask
Calibration
DAQmxAOSeriesCalAdjust
DAQmxESeriesCalAdjust
DAQmxGetAIChanCalCalDate
DAQmxGetAIChanCalExpDate
DAQmxGetExtCalLastDateAndTime
DAQmxGetSelfCalLastDateAndTime
DAQmxMSeriesCalAdjust
DAQmxPerformBridgeOffsetNullingCal
DAQmxPerformBridgeOffsetNullingCalEx
DAQmxPerformBridgeShuntCal
DAQmxPerformStrainShuntCal
DAQmxPerformThrmcplLeadOffsetNullingCal
DAQmxRestoreLastExtCalConst
DAQmxSCBaseboardCalAdjust
DAQmxSelfCal
DAQmxSetAIChanCalCalDate
DAQmxSetAIChanCalExpDate
DAQmxSSeriesCalAdjust
DAQmxXSeriesCalAdjust
External Calibration
DAQmxChangeExtCalPassword
DAQmxCloseExtCal
DAQmxInitExtCal
DSA Calibration
DAQmxAdjustDSAAICal
DAQmxAdjustDSAAICalEx
DAQmxAdjustDSAAICalWithGainAndCoupling
DAQmxAdjustDSAAOCal
DAQmxAdjustDSATimebaseCal
PXI-42xx Calibration
DAQmxAdjust4204Cal
DAQmxAdjust4220Cal
DAQmxAdjust4224Cal
SCXI Calibration
DAQmxAdjust1102Cal
DAQmxAdjust1104Cal
DAQmxAdjust1112Cal
DAQmxAdjust1122Cal
DAQmxAdjust1124Cal
DAQmxAdjust1125Cal
DAQmxAdjust1126Cal
DAQmxAdjust1141Cal
DAQmxAdjust1142Cal
DAQmxAdjust1143Cal
DAQmxAdjust1502Cal
DAQmxAdjust1503Cal
DAQmxAdjust1503CurrentCal
DAQmxAdjust1520Cal
DAQmxAdjust1521Cal
DAQmxAdjust153xCal
DAQmxAdjust1540Cal
DAQmxSetup1102Cal
DAQmxSetup1104Cal
DAQmxSetup1112Cal
DAQmxSetup1122Cal
DAQmxSetup1124Cal
DAQmxSetup1125Cal
DAQmxSetup1126Cal
DAQmxSetup1141Cal
DAQmxSetup1142Cal
DAQmxSetup1143Cal
DAQmxSetup1502Cal
DAQmxSetup1503Cal
DAQmxSetup1520Cal
DAQmxSetup1521Cal
DAQmxSetup153xCal
DAQmxSetup1540Cal
SC Express Calibration
DAQmxAdjust4300Cal
DAQmxAdjust433xCal
DAQmxAdjust4353Cal
DAQmxSetup433xCal
DAQmxAdjust4357Cal
DAQmxConnectSCExpressCalAccChans
DAQmxDisconnectSCExpressCalAccChans
DAQmxGetPossibleSCExpressCalAccConnections
DAQmxSetSCExpressCalAccBridgeOutput
C Series Calibration
Adjust C Series Calibration
DAQmxAdjust9201Cal
DAQmxAdjust9203GainCal
DAQmxAdjust9203OffsetCal
DAQmxAdjust9205Cal
DAQmxAdjust9206Cal
DAQmxAdjust9207GainCal
DAQmxAdjust9207OffsetCal
DAQmxAdjust9208GainCal
DAQmxAdjust9208OffsetCal
DAQmxAdjust9211Cal
DAQmxAdjust9213Cal
DAQmxAdjust9214Cal
DAQmxAdjust9215Cal
DAQmxAdjust9217Cal
DAQmxAdjust9219Cal
DAQmxAdjust9220Cal
DAQmxAdjust9221Cal
DAQmxAdjust9222Cal
DAQmxAdjust9223Cal
DAQmxAdjust9225Cal
DAQmxAdjust9227Cal
DAQmxAdjust9232Cal
DAQmxAdjust9234GainCal
DAQmxAdjust9234OffsetCal
DAQmxAdjust9263Cal
DAQmxAdjust9264Cal
DAQmxAdjust9265Cal
DAQmxAdjust9269Cal
Get C Series Calibration Adjustment Points
DAQmxGet9201CalAdjustPoints
DAQmxGet9203CalAdjustPoints
DAQmxGet9207CalAdjustPoints
DAQmxGet9208CalAdjustPoints
DAQmxGet9213CalAdjustPoints
DAQmxGet9214CalAdjustPoints
DAQmxGet9215CalAdjustPoints
DAQmxGet9217CalAdjustPoints
DAQmxGet9219CalAdjustPoints
DAQmxGet9220CalAdjustPoints
DAQmxGet9221CalAdjustPoints
DAQmxGet9222CalAdjustPoints
DAQmxGet9223CalAdjustPoints
DAQmxGet9225CalAdjustPoints
DAQmxGet9227CalAdjustPoints
DAQmxGet9232CalAdjustPoints
DAQmxGet9234CalAdjustPoints
DAQmxGet9263CalAdjustPoints
DAQmxGet9264CalAdjustPoints
DAQmxGet9265CalAdjustPoints
DAQmxGet9269CalAdjustPoints
Setup C Series Calibration
DAQmxSetup9219Cal
DAQmxSetup9263Cal
DAQmxSetup9264Cal
DAQmxSetup9265Cal
DAQmxSetup9269Cal
DAQmxCSeriesSetCalTemp
Storage
DAQmxDeleteSavedGlobalChan
DAQmxDeleteSavedScale
DAQmxDeleteSavedTask
DAQmxSaveGlobalChan
DAQmxSaveScale
DAQmxSaveTask
TEDS
DAQmxClearTEDS
DAQmxConfigureTEDS
DAQmxWriteToTEDSFromArray
DAQmxWriteToTEDSFromFile
Network DAQ Functions
DAQmxAddNetworkDevice
DAQmxDeleteNetworkDevice
DAQmxReserveNetworkDevice
DAQmxUnreserveNetworkDevice
cDAQ Sync Functions
DAQmxAddCDAQSyncConnection
DAQmxAreConfiguredCDAQSyncPortsDisconnected
DAQmxAutoConfigureCDAQSyncConnections
DAQmxGetAutoConfiguredCDAQSyncConnections
DAQmxGetDisconnectedCDAQSyncPorts
DAQmxRemoveCDAQSyncConnection
System Configuration
DAQmxGetAnalogPowerUpStates
DAQmxGetDigitalLogicFamilyPowerUpState
DAQmxGetDigitalPowerUpStates
DAQmxGetDigitalPullUpPullDownStates
DAQmxSetAnalogPowerUpStates
DAQmxSetDigitalLogicFamilyPowerUpState
DAQmxSetDigitalPowerUpStates
DAQmxSetDigitalPullUpPullDownStates
Error Handling
DAQmxGetErrorString
DAQmxGetExtendedErrorInfo
NI-DAQmx C Properties
List of Buffer Properties
List of Calibration Info Properties
List of Channel Properties
List of Device Properties
List of Export Signal Properties
List of Persisted Channel Properties
List of Persisted Scale Properties
List of Persisted Task Properties
List of Physical Channel Properties
List of Read Properties
List of Real-Time Properties
List of Scale Properties
List of Switch Channel Properties
List of Switch Device Properties
List of Switch Scan Properties
List of System Properties
List of Task Properties
List of Timing Properties
List of Trigger Properties
List of Watchdog Properties
List of Write Properties
Glossary
Important Information
Warranty
Copyright
Trademarks
Patents
Warning Regarding the Use of NI Products
Technical Support and Professional Services

DAQmxConfigureLogging

int32 DAQmxConfigureLogging (TaskHandle taskHandle, const char filePath[], int32 loggingMode, const char groupName[], int32 operation);

Purpose

Configures TDMS file logging for the task.

Parameters

Input
Name Type Description
taskHandle TaskHandle The task used in this function.
filePath const char [] The path to the TDMS file to which you want to log data.
loggingMode int32 Specifies whether to enable logging and whether to allow reading data while logging. Log mode allows for the best performance. However, you cannot read data while logging if you specify this mode. If you want to read data while logging, specify Log and Read mode.
Value Description
DAQmx_Val_Off Disable logging for the task.
DAQmx_Val_Log Enable logging for the task. You cannot read data using DAQmx Read when using this mode. If you require access to the data, read from the TDMS file.
DAQmx_Val_LogAndRead Enable both logging and reading data for the task. You must use DAQmx Read to read samples for NI-DAQmx to stream them to disk.
groupName const char []

The name of the group to create within the TDMS file for data from this task. If you append data to an existing file and the specified group already exists, NI-DAQmx appends a number symbol and a number to the group name, incrementing that number until finding a group name that does not exist. For example, if you specify a group name of Voltage Task, and that group already exists, NI-DAQmx assigns the group name Voltage Task #1, then Voltage Task #2. If you do not specify a group name, NI-DAQmx uses the name of the task.

For digital input tasks, NI-DAQmx creates a group for each virtual channel in the task. For each created group, NI-DAQmx appends a hyphen and the virtual channel name to the group name.

operation int32 Specifies how to open the TDMS file.
Value Description
DAQmx_Val_Open Open an existing TDMS file, and append data to that file. If the file does not exist, NI-DAQmx returns an error.
DAQmx_Val_OpenOrCreate Open an existing TDMS file, and append data to that file. If the file does not exist, NI-DAQmx creates a new TDMS file.
DAQmx_Val_CreateOrReplace Create a new TDMS file, or replace an existing TDMS file.
DAQmx_Val_Create Create a new TDMS file. If the file already exists, NI-DAQmx returns an error.

Return Value

Name Type Description
status int32 The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error.
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)