11-27-2007 10:03 AM
11-28-2007 05:27 PM
Hello Taishan,
Thanks for contacting National Instruments.
When you are using DAQmx with a PXI system, much of the signal routing can be handled implicitly by the driver. From your code, it appears that you want to use a counter output to start an analog output task. Please let me know if this assumption is incorrect.
When used while configuring your analog output task, the following function will cause the internal output of Counter0 to be routed automatically over the PXI backplane to the analog output device. I have assumed that your PXI-6602 is in slot 2 of the PXI chassis.
DAQmxCfgDigEdgeStartTrig (AnalogOutputTaskHandle, "/PXI1Slot2/Ctr0InternalOutput", DAQmx_Val_Rising);
The tutorials Getting Started with NI-DAQmx and Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications are great starting points for programming with the DAQmx API. Since you are using C, Using NI-DAQmx in Text Based Programming Environments, is a great starting point for comparing the LabVIEW API to the C API for DAQmx.
Please post back if you have any questions.