12-13-2011 09:41 PM
I'm working on an application in VC++ using a PCIe-6536 and also a USB-6501 (both are DIO devices). What I'm trying to figure out is, is there a list of which C functions work on each device?
On the NI-DAQmx C Reference Help that loaded on my computer along with the drivers, there are dozens of functions listed but surely each one of these functions isn't supported on both devices. I also looked in the manuals for each device there is no list telling me which functions are valid.
Any help is appreciated!
12-14-2011 08:43 PM
Hi,
It really depends on the device that you are using. Generally basic DAQmx functions (DAQmxCreateTask, DAQmxCreate(DI/DO/AI/AO)Chan, DAQmxRead/Write, DAQmxIsTaskDone, DAQmxClearTask, etc) will work with any device. Timing functions (DAQmxCfgSampClkTiming,DAQmxCfgImplicitTiming) will not work on USB all samples of static DI lines and updates of DO lines are software-timed and hardware timing is not supported for this device. However, these functions will work on PCIe-6536. Have a look at the manuals for PCIe-6536 and USB-6501. By looking at the functionality of your device (timing, triggering, DIO, AIO) you should be able to figure out which DAQmx functions can be used with this device.
Also, you can look at specific LabVIEW examples for your hardware to find out which DAQmx functions are valid for your device. To view hardware specific examples open LabVIEW, go to Help>>Find Examples and select your device under the hardware tab (bottom left corner of the example finder window) and check the "Limit results to hardware" checkbox.
12-15-2011 09:09 PM
Ok I will try to figure it out on my own. Sure would be nice though if the manual would just have a list of which functions are available, it would be helpful for beginners like me.
<<<<
Also, you can look at specific LabVIEW examples for your hardware to find out which DAQmx functions are valid for your device. To view hardware specific examples open LabVIEW, go to Help>>Find Examples and select your device under the hardware tab (bottom left corner of the example finder window) and check the "Limit results to hardware" checkbox.
>>>>
As far as I know I don't have LabVIEW. Is that something that got loaded during my DAQmx driver CD install? I don't see it anywhere on my computer...
12-16-2011 12:43 PM
Hi,
The example VIs for specific hardware can only viewed in LabVIEW. You can download the 30 day evaluation version of labview here.
The C example code can be found under Start>>All Programs>>National Instruments>>NI-DAQ>>Text Based Code Support>>ANSI C Examples.