annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

6602 / 6601 ctr2 stops at DIO

Hi,
 
when I use the counter2 (ctr2) from 6601 or 6602 PCI Card and 
parallel I will use DIO then the ctr2 stops.
All other counter don't stop - why?
 
I Used the example VI : "Gen Dig Pulse Train-Continuous.vi" for the Counter.
 
Thanks
 
Markus
0 Compliments
Message 1 sur 8
5 107 Visites
On a 6602, ctr 2-7 share most (maybe all?) their default io pins with DIO bits 8-31.

Generally, a pin can be used by both a counter input task and a digital input task simultaneously.
However, it cannot be used by both tasks for output simultaneously.

So, Ctrs 0-1 never conflict with DIO and DIO bits 0-7 don't conflict with counters.  All other combos require more care.

A common problem under traditional NI-DAQ was to configure the entire 32-bit digital port for output.  This should be easier to avoid under DAQmx.

Exactly what kinds of inputs and outputs do you need to perform simultaneously?


-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 Compliments
Message 2 sur 8
5 104 Visites
I use DAQmx and not the tradditianal version.
 
We use out0, out2, out4, out5 and
DIO_0  to DIO15, DIO_17 to DIO_19, DIO_21 to 23, DIO_25 to 27 and DIO_29 to PFI_31
 
OUT0, Out4 and Out5 will work parallel with DIO, but OUT2 (PFI_28) reset, wenn I use DIO.
 
On the Counter Outputs we don't use the DIO.
 
I hope you can understand me .... 🙂
0 Compliments
Message 3 sur 8
5 090 Visites

It sounds like you approached it right and it ought to work.  I can't think of much else to suggest except general troubleshooting.  For example, can you try configuring and wiring to use Ctr3 Out instead of Ctr2?  It looks like PFI24 / DIO24 is similarly unused.

When does Ctr2 reset?  Is it when you first start the DIO task?  How have you specified your DIO virtual channel(s)?  Can you post your code -- when I get a chance I can try to replicate the problem.

-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 Compliments
Message 4 sur 8
5 086 Visites

Ok, so i write a little step by step .....

First 1 call the example VI "Gen Dig Pulse Train-Continous.vi" and select ctr0 and start the VI.

Second I start the "test_DO.vi" (see Atachment) and start this. The Counter ctr0 will work fine.

If I do this with ctr2, the signal stops, wenn I wirte to DIO.

 

0 Compliments
Message 5 sur 8
5 084 Visites

I wasn't able to replicate the problem.  On my system, Ctr2 continued running just like Ctr0.  Tough to guess what's going on with your system...

-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 Compliments
Message 6 sur 8
5 078 Visites
I've replay the test, the Signal an ctr2 will always stop (I check it with the oszilloscop)
the VI is in runing mode, but the signal stops.
 
In the Attachment i have my configuration from MAX.
0 Compliments
Message 7 sur 8
5 049 Visites
No idea? anyone
0 Compliments
Message 8 sur 8
5 029 Visites