Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the fastest way to rearm the starttrigger for digital input

Hi

Im using the PCI-DIO-32HS for digital input. I have to read the data from an 12 bit ADC. The timing is done with an external clock (which runs at 32kHz). When the
ADC has finished a conversion, it takes a control line
from low to high (everything synchronous to the clock, this line is the stattrigger), after that it writes out the 12 bits serially.
The conversion rate of the ADC is about 100 Hz.

What I tried is to set up the digital input (see attached file) and then wait for the starttrigger.
The problem is, that after one aquisition the trigger
does not rearm unless I use "DIO Clear" and do the whole setup again (but this takes too much time, I want to get every ADC-sample).

Does
anybody not what the fastest way to rearm the starttriger is?

Thanks! Martin
0 Kudos
Message 1 of 4
(3,540 Views)
Hi Martin,

There is an example code about retriggered pattern output for the PCI-DIO-32HS board. You can use the same "retrigger-code" for an input application.
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E82B56A4E034080020E74861&p_node=DZ52321&p_source=External


Regards,

Evrem Yarkin
NI Application Engineer
0 Kudos
Message 2 of 4
(3,540 Views)
Hi

thanks for your quick answer. What you suggest is exactly what I tried (see attached file. But after
the firt iteration of the loop the "buffer read" vi
returns error 10802.
In the meanwhile I "solved" the problem by aquiring
all the data after the first starttrigger and extracting the adc-data afterwards.

I have one more question (since you are an NI - Engineer I hope you are able to answer it ;-).

Do you know if the start/stop trigger signals are evaluated synchronously to the external clock I aply
to the REQ pin? (this is quite important because I have
to be sure that the first sample I get contains the first bit of the ADC).

have a nice weekend

Martin
0 Kudos
Message 3 of 4
(3,540 Views)
Hi Martin,

You can find info's about the timing behaviour of the Starttrigger and the external clock in the User Manual of the PCI-DIO-32HS starting at page 3-2.
Below the link to the User Manual
http://www.ni.com/pdf/manuals/321464c.pdf

I hope this helps!


Wish you a nice day!

Regards,

Evrem Yarkin
NI Application Engineer
0 Kudos
Message 4 of 4
(3,540 Views)