10-13-2006 10:46 AM
DAQmxCreateTask() - For creating the task
DAQmxSetCIFreqTerm()
DAQmxSetCOPulseTerm()
DAQmxCreateCOPulseChanFreq() - Creates channels for generating digital pulses
DAQmxCfgImplicitTiming() -
Please help me with an example code to achieve my requirement and let me know if my requirementis possible at all or is there any Hardware limitation
Thanks
Shiladitya
10-16-2006 02:47 PM
Hello Shiladitya,
It looks like you are using the correct function calls to set the PFI lines for your counter signals. It is even possible to output a counter signal on one PFI line and then use the same line to measure the signal (i.e generate on counter 0 and route to PFI 12, and then perform counter input on counter 1 with PFI 12 as the source).
If you are generating on 12 and reading on 10 you can either connect the signals externally or create a route between PFI 10 and 12 using the following function:
int32 DAQmxConnectTerms (const char sourceTerminal[], const char destinationTerminal[], int32 signalModifiers);
It is possible that your route may be reserved depending on the timing you have specified for your tasks. What environment are you using for programming (LabVIEW, CVI, C)? What timing source have you used for the tasks? What difficulty/error are your encountering?
Regards,
Jennifer O.
Applications Engineer
National Instruments