09-07-2005 12:14 PM
09-07-2005 01:37 PM
What version DAQ are you using?
According to this DAQ7.5 only supports DAQmx functions. Unsure about earlier versions.
http://www.ni.com/support/daq/versions_pci_pxi.htm
09-07-2005 03:10 PM
09-07-2005 04:14 PM
Hi bmihura,
Not sure if you are familiar with this, but my experience with DAQmx is that the DAQmxCreateTask takes a little while to complete. Therefore, in a time sensitive application it would be best to place that call somewhere outside of your AI_VRead2 function so that you're not constantly waiting on that task to be created each time you just want to read a value.
Hope this helps!
09-08-2005 12:36 AM
09-08-2005 11:14 AM
09-08-2005 05:07 PM
Good comments John,
I'd also like to point out that there are a bunch of DAQmx ANSI C shipping examples that install by default into this directory:
C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C
-Alan A