Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Counter Questions Using PCI6602

I have a couple of questions regarding the operation of the PCI6602. I am programming in VB.NET.

Can you have multiple tasks that each correspond to one Counter Input Channel being used at the same time (i.e. trying to read a small angle inside another larger angle using encoders)?

Is there any way to setup a trigger based on a counter count value (i.e. once the count value hits 180 degrees raise a digital bit)?
0 Kudos
Message 1 of 2
(3,340 Views)
Justin,

You cannot have two tasks running simultaneously that are using the same counter input channel. You can, however, connect the same signal to two of your counter channels and have two tasks monitoring the two different channels.

As far as triggering off of a counter value. The best that you can do is a software trigger. In DAQmx, in LV 7.1 you can do a timed loop that waits for the event to occur (i.e. counter reaching a value). I am not aware of this implementation in VB, but it is still nothing more than a fancy software trigger. You would need to poll the counter and then run the DIO task when it reaches its value.
Message 2 of 2
(3,340 Views)