09-01-2010 09:32 AM
Is there a page somewhere that documents the arguments, return codes, usage, etc. of
DAQmxReadDigitalU8()?
09-01-2010 09:49 AM
Don't know why you would post your question here.
The NI-DAQmx C Reference Help has this information. It will be somewhere under National Instruments on your start menu. On my Vista installation, it's under NI-DAQ>Text Based Languages.
09-01-2010 01:07 PM
I appologize if this was the wrong forum. I'm supporting an application that interfaces with TestStand via C# and I am looking to get details of the DAQmxReadDigitalU8() method to try to interpret what it expects as input and what it is giving as output to see if we're handling return codes incorrectly. Is the NI-DAQ documentation available on-line as well?
09-01-2010 03:48 PM
Never had to look for it online, sorry. Did you not find it locally? Did you select C language support when you installed DAQmx?
09-02-2010 06:39 AM
I don't have DAQmd installed. I have a "home made" DLL that uses DAQmx, and my code calls that DLL. The return code from DAQmxReadDigitalU8() is the value returned from the method I'm calling in this library. So I want to see if the return codes are documented.
09-02-2010 08:09 AM
If you do not have DAQmx installed, you will never be ablke to call DAQmxReadDigitalU8 or any other DAQmx function. Therefore, i don't get the point you are after.
If you want to get error information about the return code, you can call
int32 DAQmxGetErrorString (int32 errorCode, char errorString[], uInt32 bufferSize);
from the C API from DAQmx.
On the other hand, if you already work with C#: Why don't you use the .NET API from DAQmx?
hope this helps,
Norbert