<< DAQ_Constants NIDAQ DAQ_Read_Functions >>

NIDAQ >> NIDAQ > DAQ_Error_Handling

DAQ_Error_Handling

DAQ_Success

DAQ_Failed

DAQ_ErrChk

DAQ_GetExtendedErrorInfo

Calling Sequence

[ value ] = DAQ_Success ()
[ failed ] = DAQ_Failed ( status )
[] = DAQ_ErrChk ( taskHandle, status )
[ errorString ] = DAQ_GetExtendedErrorInfo ()

Parameters

value

integer

failed

boolean

errorString

string

Description

Examples

// implementation of DAQ_ErrChk
function []=DAQ_ErrChk(taskHandle, status)
  if DAQ_Failed( status ) then
    errorString = DAQ_GetExtendedErrorInfo();
      if taskHandle ~= 0 then
        DAQ_StopTask( taskHandle );
        DAQ_ClearTask( taskHandle );
      end
   error( 'DAQmx Error: ' + string(status) + ': '...
                              + errorString, 10000 );
  end
endfunction

See Also

Authors

Dirk Reusch

Bibliography

NI-DAQmx 9.x C Function Reference Help

<< DAQ_Constants NIDAQ DAQ_Read_Functions >>