06-05-2006 06:15 PM
06-06-2006 01:22 PM
Hello Jack,
DAQmx can use the output of counter 1 to generate a signal that is 1000 times slower. I have attached a screenshot of some code that
does this. This code creates a counter output task that counts the
number of pulses/tics to generate a waveform. You then specify
the 'source of tics' of this task to be counter 1's internal output
(/Dev1/ctr1internaloutput).
In your case, if you have a 10 KHz signal coming out of counter
1, you would specify the number of high and low tics to be 500 so that each
square wave period out of counter 0 is 1000 periods out of counter 1. There is some good information in Context/LabVIEW help to explain how this counter output task works.
Regards,
Jesse O.
Applications Engineering
National Instruments
06-27-2012 11:19 AM
I am having the exact problem that Jack was having. I have some old code written using Daq and I need to upgrade to Daqmx. The hardware device that I am controlling can not be rewired. I need to create a clock frequency using counter 1 and divide that clock using counter 0 with a PCI-6032e board.
The older code written in DAQ and using the PCI-6032e card works great. Using Daqmx I can create the clock signal without a problem using counter 1. However, when I try to use the Dev/CTR1InternalOutput as a source of ticks for the CTR0 to create the divided frequency (as shown by Jesse in the example above) I get an error message code 89136 that says "Specified route can not be satisfied, because the hardware does not support it." This is very puzzling because I know that the hardware can support it because the same card performs this operation using the DAQ code.
I have not had any luck resolving this issue, although I am sure that it is a simple one. Please help.
I have attached the code.