08-14-2012 04:34 PM
Hello,
I am relatively new toDAQmx, especially to counters. I am having problems determining which pins to connect on the DAQ board. I would like to run the vi described here, but am unsure how to connect the board. I have looked at the X Series manual for the pinout descriptions, but do not know how they apply to the program on this page. When do I connect a counter's GATE, AUX, A, B pins, etc?
Any input on what to connect or any pages that possibly descibe how to connect counters would be very helpful.
Thank you.
Solved! Go to Solution.
08-15-2012 11:54 AM
Hi katho,
The spec sheet for any particular X Series device will have information about the counter channels. Those spec sheets are located on the NI.com product pages, but I would be happy to help you out further if you can tell me which X Series device you are trying to generate the pulses with and the breakout board you are using if you have one.
08-15-2012 12:03 PM
Hi Ben,
I am using a USB-6341 device.
I found the spec sheets from NI this morning and connected the pinouts the way I read in the address below (CTR 0 output to CTR 1 gate and a digital input to CTR 0 gate), but I have not had anymore luck with this. This leads me to believe I interpreted the article incorrectly.
http://digital.ni.com/public.nsf/websearch/D85B080B05529D0A86256B7C007CB6D7
Any additional input on how to connect the board would really help. Thank you
08-15-2012 03:52 PM
Your most recent post links to a more advanced-sounding example & I recommend you stick with something simpler to get started.
Your very first post links to just such an example where the pulse train signal will come out of Ctr0_Out. Ctr1 is used to do the retriggering and to "pause trigger" (enable / disable) Ctr0. However, much of that stuff is configured using some nice DAQmx features such that you don't need to physically wire any pins between the two counters.
The only physical wiring you need is to connect your physical digital trigger signal to PFI1, and to connect Ctr0_Out to whatever external thingy needs to receive them. As long as your device is named "Dev1", I would expect that first example to work.
I know there are some helpful docs around to give more general info about counter pins & behavior, but I don't recall quite where as I haven't looked for them in many years. Meanwhile, here's a *little* bit of general description I wrote myself once upon a time.
-Kevin P
08-16-2012 01:36 PM
Kevin,
I am still not understanding the pinouts 100%. You said that I do not need to connect the two counters physically, but isn't CTR1 a digital trigger that needs to be connected to PFI9? (I realize that it was PFI1 in the original program, but they were using a different device.) In which case, wouldn't the two need to be connected?
Additionally, no matter how I seem to connect the pins, I am not having a signal generated in the second counter whatsoever. I have not changed any part of the vi (except the trigger source from PFI1 to PFI9 because I am using a 6341 X series board).
Katherine
08-17-2012 11:40 AM
I realized that I was misinterpreting your response. Thank you for your help!