Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with counter signal routing

Hello everyone,

I have modified the example VI "PWM Counter Output.vi" so that counter0's source is counter1 internal output, instead of the analog input sample clock. However I get the error that this application requires an external clock. How does one accomplish this, to pair up counters using Hardware timed single point timing?


Thanks,
Brady
0 Kudos
Message 1 of 5
(3,623 Views)
Since you have both counters set up for hardware timed single point, they will both require an external sample clock. On what edge would you like the "counter driver" to update its frequency/duty cycle?
0 Kudos
Message 2 of 5
(3,613 Views)
Hi Gus,

I actually would like the "counter driver" to run off the 100 kHz timebase. that way, for every pulse generation of the counter driver, the second counter would generate a pulse of frequency/duty cycle specified. when i wired it this way, with the counter driver timing set for continous samples and implicit, i got another error - i think some error about unable to find route, or something.

Thanks,
Brady
0 Kudos
Message 3 of 5
(3,610 Views)
Hello Brady,

I can think of two ways that might help you with your signal routing. You can specify the input terminal of your counter task by using a channel property node or you can explictily route signals using the "DAQmx Connect Terminals.vi" as long as the specified route is supported (you can check this in MAX).

I hope this helps!

Take care,
E.Lee
Eric
DE For Life!
0 Kudos
Message 4 of 5
(3,601 Views)
Hi,
I am trying to route Di/Sample clock to RTSI0 and use it as an external clock signal for counting edges.  [I am not sure if I can do that. I checked the attributes table to see the routes that can be made in the MAX. The block corresponding to the Dev1/RTSI0 clumn and row corresponding to Dev1/DI/Sample clock ] is green in color ] which means it is possible to connect.

Here are my questions.
  • Can I use the RTSI0 as a source of my external power source for edge counting application ? If "no" to what pin should I route the DI/Sample clock to ?
  • In the block diagram window, I created "DAQmx connect terminals.vi" but I am unable to wire source and destinaion channels. So how to create the source and destination channels and wire them to the DAQmx connect terminals.vi ?
Please suggest
Thanks in Advance
0 Kudos
Message 5 of 5
(3,336 Views)