Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

where is NIDAQErrorHandler explained

Hi,
the NIDAQErrorHandler function is not listed in the NIDAQ function reference online help? Why? and where can I find a description of this function?
0 Kudos
Message 1 of 5
(3,905 Views)
Hello

you can find the help for this function under Start >> Programs >> National Instruments >> NI-DAQ >> NI-DAQ Examples Help.

Here's what the helps says for the function you need

NIDAQErrorHandler

Format

status = NIDAQErrorHandler(daqStatus, functionName, ignoreWarning)

Purpose

To display a message dialog box with the NI-DAQ error/warning code and a description, and an option for the user to continue (continue option not available in LabWindows/CVI).

Parameters

Input


Name Type Description
daqStatus I16 Status code returned from NI-DAQ function
functionName STR Function name associated with status code
ignoreWarning I16 Flag to turn warning code checking on or off
Return Type


Name Type Description
status I16 Sta
tus code from MessageBox function
Parameter Discussion

daqStatus is the status code returned from the NI-DAQ function used right before this function.

functionName is a string that identifies the function associated with the status code.

ignoreWarning specifies whether to ignore NI-DAQ status codes that are positive (NI-DAQ Warnings) or not. To ignore the warnings, set this parameter to 1.

status is the return code of this function. Possible return codes are the same as the following functions:

CVI: MessagePopup
DLL: MessageBox (Windows API)

Using This Function

Use the function to check if the NI-DAQ function returned an error or warning code. The error codes are negative, and the warning codes are positive. It is recommended that you check errors after every single NI-DAQ function.

In the DLL version of NIDAQErrorHandler, you can determine which button was pressed in the dialog box by examing the returned status code. For example, if the No button
was pressed, then this function will return ID_NO. And if the Yes button was pressed, this function will return ID_YES.

I hope this helps

Bilal Durrani
Bilal Durrani
NI
0 Kudos
Message 2 of 5
(3,905 Views)
Hello

you can find the help for this function under Start >> Programs >> National Instruments >> NI-DAQ >> NI-DAQ Examples Help.


Here's what the helps says for the function you need


NIDAQErrorHandler


Format


status = NIDAQErrorHandler(daqStatus, functionName, ignoreWarning)


Purpose


To display a message dialog box with the NI-DAQ error/warning code and a description, and an option for the user to continue (continue option not available in LabWindows/CVI).


Parameters


Input


Name Type Description
daqStatus I16 Status code returned from NI-DAQ function
functionName STR Function name associated with status code
ignoreWarning I16 Flag to turn warning code checking on or off
Return Type


Name Type Description

status I16 Status code from MessageBox function
Parameter Discussion


daqStatus is the status code returned from the NI-DAQ function used right before this function.


functionName is a string that identifies the function associated with the status code.


ignoreWarning specifies whether to ignore NI-DAQ status codes that are positive (NI-DAQ Warnings) or not. To ignore the warnings, set this parameter to 1.


status is the return code of this function. Possible return codes are the same as the following functions:


CVI: MessagePopup
DLL: MessageBox (Windows API)


Using This Function


Use the function to check if the NI-DAQ function returned an error or warning code. The error codes are negative, and the warning codes are positive. It is recommended that you check errors after every single NI-DAQ function.


In the DLL version of NIDAQErrorHandler, you can determine which button was pressed in the dialog box by examing the returned status code
. For example, if the No button was pressed, then this function will return ID_NO. And if the Yes button was pressed, this function will return ID_YES.


I hope this helps


Bilal Durrani"
Bilal Durrani
NI
0 Kudos
Message 3 of 5
(3,905 Views)
Measurement Studio has installed in my PC. But the NI-DAQ Example Help can't be found. My DAQ card is PCI-6014 and the driver is NI DAQ 7.44 version. The other problem is NIDAQErrorHandler can't also be found.
0 Kudos
Message 4 of 5
(3,442 Views)

Hi north96,

 

The documentation should have been installed when you installed NI-DAQ.  If it didn’t you might try running a repair or modify on NI-DAQ (from the Add/Remove utility in the control panel) to get the help installed.

 

This link provides a pdf document that explains many of the NI-DAQ functions:

NI-DAQ Function Reference Manual for PC Compatibles

 

Hope this helps.

 
Jared T.
0 Kudos
Message 5 of 5
(3,431 Views)