10-13-2005 09:14 AM
10-14-2005 11:01 AM - edited 10-14-2005 11:01 AM
Hello Hiren,
I want to mention a couple things. First, there are default counter terminals for your device (see pinout below). Second, I'm not sure what LabVIEW VI you were using, but you can use the DAQmxConnectTerms function or the DAQmxExportSignal to route signals with NI-DAQmx. These functions are very similar to the LabVIEW "DAQmx Connect Terminals.vi" and the "DAQmx Export Signal.vi", respectively. If you need additional help with NI-DAQmx functions, see the NI-DAQmx C Reference Help, located here (in Windows) Start>>All Programs>>National Instruments>>NI-DAQ.
-Alan A.
Message Edited by Alan A. on 10-14-2005 11:03 AM
10-14-2005 01:00 PM
Hello Alen,
I am using LabView 7.1. I have this up and running under LabView without a problem.
Let me explain what I am trying to do in CVI. I want to use counter0 to measure my frequency using configureFrequency function. What I need is what function I can call to connect PFI8 to ctr0? DAQmxConnectTerms function asks for source and destination but I cannot find the ctr0 in there.
Thank you,
Hiren
10-14-2005 01:14 PM
Also where can I find the function "DAQmxSetCIFreqTerm"? I can not find this on the DAQmx library. This may the function I need to set my ctr0 to PFI8.
Hiren
10-17-2005 09:49 AM
10-17-2005 11:07 AM
Hello Alan,
I am using CI Freq function in LabView 7.1. By default ctr0 is set to PFI9 when I use CI Freq function. But by using Property node on the term I can choose any PFI line to assign to ctr0.
I have got the first part working OK on CVI also where ctr0 is assigned to PFI9 as default for Frequency measurements. What I need is the term function for CI so that I can assign any of the PFI line to ctr0.
Hiren
10-17-2005 11:38 AM
10-17-2005 03:57 PM
Hi Alan,
Thank you for your help, you are right all I need is "DAQmxSetCIFreqTerm" function to set PFI line to ctr0.
Can you tell me where can I find the description or an example of
int32 __CFUNC DAQmxSetCIFreqTerm(TaskHandle taskHandle, const char channel[], const char *data) function please. Especially the "const char * data" parameter. If you can help me with this then I think I have got what I need to assign my ctr0 source to any of the PFI lines.
Thank you,
Hiren
10-18-2005 11:28 AM
10-18-2005 04:56 PM
I can't get it to work. Can you find out more information on this function please?
Hiren