Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Initializing cards

Hello:

I am using an AT MIO 16 DE 10 card. I need to initialize a counter wiht this
instruction:

daqError = DelayedPulseGenConfig (device, strCounter, pulseDelay1,
pulseWidth1,
USE_INTERNAL_TIMEBASE,
START_COUNTING_ON_FALLING_EDGE,
NEGATIVE_POLARITY, &actualDelay1,
&actualpulseWidth1, &taskID);

Apparently the default for the counter is START_COUNTING_ON_RISING_EDGE, so
the very first time I run the program, upon reconfiguration od the card, a
small pulse is sent by the counter. This is causing me problems since I use
the counter to generate a single pulse to trigger o
ther stuff. IS there a
way to program the card so that the default upon power up is
START_COUNTING_ON_FALLING_EDGE?

Are the digital outputs also programmable so that upon power up they are
off? if not what state are theo on on power up?

Thanks
Lvilla
0 Kudos
Message 1 of 3
(2,663 Views)
There is not a way to program the card to start count on falling edge. Since you need to function call to setup the delayed pulse generation, you can simply set it at this point.

The digital I/O lines default to Read and have a pull up resistor on them that pulls them to 5V if nothing is connected. You can add pull down resistors externally from the DIO line and DGND which would pull the DIO line low by default if nothing is connected, but the DIO lines will still be setup for Read operation when you boot up.
0 Kudos
Message 2 of 3
(2,663 Views)
Michael:

Thanks for the answer. Could you please clarify how to add pull down
resistors externally? is this a plain resistor between the DIO line a DGND?
will a 300 ohm 1/4 watt be enough?

LVilla

"Michael S." wrote in message
news:<5065000000050000006E280000-986697009000@quiq.com>...
> There is not a way to program the card to start count on falling edge.
> Since you need to function call to setup the delayed pulse generation,
> you can simply set it at this point.
>
> The digital I/O lines default to Read and have a pull up resistor on
> them that pulls them to 5V if nothing is connected. You can add pull
> down resistors externally from the DIO line and DGND which would pull
> the DIO line low by default if nothing is connected, but the D
IO lines
> will still be setup for Read operation when you boot up.

when you boot up.
0 Kudos
Message 3 of 3
(2,663 Views)