Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Simultaneous counter execution on

I am running an output task and an input task simultaneously in LabVIEW on an M series board (PCI 6259). I need to generate/acquire data at different rates. There is a difficulty getting the two counters on the board to run simultaneously to provide the two sample clocks I need. Error is 'Resources reserved', and only one clock runs. Is there a way to have them both run together at independent rates?
0 Kudos
Message 1 of 3
(3,048 Views)
Can you post your sample code? Meanwhile...

1. If your "input" and your "output" tasks refer to ANALOG in/out, then you should be able to set up your sample rates & # of samples using the DAQmx Timing vi. You shouldn't need to use the on-board counters. (The rules may be different for Digital I/O -- I've done very little with timed DIO).

2. The "resources reserved" error is probably because you've set up a finite pulse train on one of the counters. Behind the scenes, DAQmx uses the board's other counter to implement the finite pulse train.

As a test, set up the counters for continuous pulse trains and you should see that you can generate two independent clock rates. It's even possible to have the faster one drive the slower one so that their rising edges are in sync.

Hope this helps you get started. Post back with a code sample or other questions...

-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 3
(3,040 Views)
Thankyou Kevin,

Your suggestion to set the sample mode for the counters to continuous has solved the problem. Both counters are now able to run simultaneously and independently.

TMap
0 Kudos
Message 3 of 3
(3,032 Views)