11-03-2010 12:31 PM
Hi martin
The self test function is for testing the connection and limited device resources. For the function of testing the DAQmx channel before a vi attempts to read form it the function becomes use full.
The error codes used by NI-DAQmx are unique because the descriptions are generated dynamically based on the type of error generated and how it is generated. This design allows for very specific error descriptions with appropriate recommendations for how to resolve the error. As a result, a static list does not reflect this dynamic error reporting
However i have attached the links for common error codes and their resolutions.
Common DAQmx Error Codes.
http://digital.ni.com/public.nsf/allkb/8A0E097385A4269586256DBA0054E668?OpenDocument
Common DAQmx error codes
http://digital.ni.com/public.nsf/allkb/8A0E097385A4269586256DBA0054E668?OpenDocument
04-30-2013 12:21 PM
I would like to add to this thread and I'm seeking some help to use the DAQmxSelfTestDevice function I wish to write a program in C to be able to initiate a self test on an NI-9188 chassis.
Background: We test in vehicle and remove the laptop perioticly. when we reconnect, often the 9188 Chassis will not be transmitting signals. a selftest through MAX will usually resolve the issue. for logistics reasons we need an automated way to perform this selftest to avoid missing data with limited user involvment.
I am trying to use Bloodshed coding software to write and compile my C code below is a copy of the program and the compiler errors im receiving.
the header file "NIDAQmx.h" and library file NIDAQmx.lib are present. Any assistance with how to successfully compile this function would be greatly appreciated.
#include <stdio.h>
#include <NIDAQmx.h>
int main(void)
{
const char devicename[] = "cDAQ-9188-182105E";
DAQmxSelfTestDevice(devicename);
return (0);
}
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Personal\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Personal\Makefile.win" all
gcc.exe -c wakeupselftest.c -o ../Personal/wakeupselftest.o -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/include"
gcc.exe ../Personal/wakeupselftest.o -o "Wakeup.exe" -L"C:/Dev-Cpp/lib" -L"C:/Dev-Cpp/lib" -mwindows ../lib/NIDAQmx.lib
../Personal/wakeupselftest.o(.text+0x5c):wakeupselftest.c: undefined reference to `DAQmxSelfTestDevice@4'
collect2: ld returned 1 exit status
make.exe: *** [Wakeup.exe] Error 1
Execution terminated