LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Processing counter input into an analog output

Greetings to all --

I've set up a PCI6070E card to do digital input through its "counter 0" channel and output through its "AO 0" channel.

I'm brand-new to Labview, however, and having trouble figuring out how to design my program.  In short, this is what I want to do:

1. Count the number of pulses, let's call it P, that arrive at the counter in a given time increment.  (Ideally, this time will be adjustable from 1 microsec to 1 sec.  In reality, I may have to settle for some number of milliseconds or more, as Labview doesn't seem to like to do loops at more than 1khz.  But that's an issue for another day.)

2. Perfrom a mathematical operation to turn P number of counts into some number N between -10 and 10

3. Set the analog output to read N volts

4. Reset counter to zero and start over at (1.) again.

I can make labview count pulses in, and I can send voltage signals out, and I can use the front panel to get the inputs I need from the user for the mathematical operation,  However, I'm having trouble with counting how mant pulses hit in a given time increment, and then resetting my digital counter to zero.

Can anyone point me at the right function names or help files, or suggest a rough program flow?  I appreciate it.

Chad
cmparish@unity.ncsu.edu
0 Kudos
Message 1 of 2
(2,514 Views)
Chad,
 
The only way you can perform this type of operation with your device is in software.  See the knowledge base entries below for more details. 
 
HW resetting Counter on an STC Device:
 
How To Reset in Software:
 
Regards,
L. Allen
0 Kudos
Message 2 of 2
(2,500 Views)