Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

problems with the time limit in PCI6602

Hi,

     I am using a counter-timer PCI-6602 to scan a sample.

    I’m using Counter0  as a pulse generator to generate a GATE signal and Counter1 as a counter, and the mode is event counting.

J'd like to have a more precise definition about "time limit". If I used a GATE frecuency of 1KHz (1ms integration time) and a SOURCE frecuency of 10KHz with a time limit of 1sec, I measured1000 times a 10. That’s OK but that also means that I need to be 1 sec at each position!!!! And this is a lot of time!!! If I changed the time limit form 1sec to a fraction of a sec (300 ms for example) it doesn’t work. Why?

 

Could anybody help me! Thanks,

Lala

 

0 Kudos
Message 1 of 2
(3,168 Views)
Lala,

What exactly do you mean by "I need to be 1 sec at each position"? Are you trying to interface with quadrature encoders? It is possible to perform a buffered period measurement which will sample the position once per second (hardware-timed). It also sounds like you are using Traditional NI-DAQ. Would it be possible to upgrade to NI-DAQmx? This API is recommended for new designs. Also, are you using LabVIEW or a text-based language. In the LabVIEW Example Finder (Help->Find Examples), search under "Hardware Input and Output->DAQmx->Counter Measurements->Position" for the Meas Angular Position-Buffered-Cont-Ext Clk.vi example. You can also use another counter to clock this buffered measurement. If this does not sound like what you are trying to accomplish, please let me know a bit more about your hardware and what you intend to do with it. I'm sure I could then recommend a better method.

Hope this helps,
Ryan Verret
Product Marketing Engineer
Signal Generators
National Instruments
0 Kudos
Message 2 of 2
(3,154 Views)