05-02-2011 07:18 PM
Is there a complete NI-DAQmx reference where I can search for a function and find out about it's parameters, maybe a brief explanation of the function does etc. "NI-DAQmx Help" that I get to from my Start Menu does not include functional references. For example I like to be able to search for "DAQmxRegisterSignalEvent" or any other function in <NIDAQmx.h>.
Thanks
Devor
05-03-2011 02:48 AM
Look at this topic, here is the answer:
http://forums.ni.com/t5/Measurement-Studio-for-VC/DAQmx-C-Reference-Help-file-pack/td-p/1532930
- George -
05-03-2011 09:21 AM
If you want the Function Reference for your version of NI-DAQmx, check under Start » Programs » National Instruments » NI-DAQ » Text-Based Code Support » NI-DAQmx C Reference Help. This includes all of the functions and parameters needed to call them.
05-03-2011 10:11 AM
Thank you Seth, indeed I have looked at the "C Reference Help". It's incomplete - I couldn't find reference to the function I was looking for. I just ended up spending a lot of time reading without getting even a clue about the information I was looking for. It was very frustrating.
05-03-2011 10:28 AM
Hmmm, when I search the C Reference Help for "DAQmxRegisterSignalEvent" the only result returned is the reference page for this function.
Is the issue that this reference page is incomplete or that you were unable to locate it?
05-03-2011 12:21 PM
Thats very promissing, Seth. Thank you for the response. Sounds like there is a version issue. What version of the -C- rerference are you using and how can one get it?
05-03-2011
12:25 PM
- last edited on
06-17-2024
09:53 AM
by
Content Cleaner
I'm using the version that is installed when you install ANSI C support with NI-DAQmx 9.3. I would try this version for the latest in bug fixes, hardware support, and up-to-date documentation.
05-03-2011 01:20 PM
I re-installed NI-DAQ from your link (9.3) and the help can find the function - thank you. But now I can't find descriptions of constants like DAQmx_Val_SampleCompleteEvent flag? This is one of the system constants that gets passed to DAQmxRegisterSignalEvent for example?
The only description I found for DAQmx_Val_SampleCompleteEvent says it's a "Sample complete event"? I was hoping for little more than that, like mention of causal steps that lead to a "Sample complete event" so we can debug issues such as the flag never going up or if need characterization of it's causal timing profile. Are system constants explained yet in another volume of the manuals?
05-03-2011 04:23 PM
If you click on "hardware events" in the sentance under Purpose you will be directed to the NI-DAQmx Help topic on the various events represented by the constants. The reason this is in the NI-DAQmx Help instead of in the C Reference Help is because Events are accessible from many programming languages, so details on this topic is in a centralized location.
This article provides some further information on what each of the events involves. However, it doesn't offer details on timing profiles and such because that is very device, driver version, and system dependant. For the "Sample complete event", this event fires after a sample clock period is complete (one sample gathered on each channel).
Events are an advanced feature in NI-DAQmx and are often not as well documented as other functionality, due to unique behavior between certain hardware devices and system configurations. When possible, events fire as soon after the criteria for the event are met as possible. However, because Windows is not a deterministic operating system, timing can't be guaranteed and if too many events occur, some will be ignored by the system if they come in too quickly.
The best recommendation for troubleshooting events is to first verify that the cause for the event actually occured. Have samples been returned on all channels? If not, then the issue is in either the configuration of the channel, timing, or trigger. If a sample is available on all channels and the event still hasn't fired, then there is likely an issue with the way the event is configured.