Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read pulses from 9411 and analog value from 9215 simultaneously

Hi,

I want to count the number of pulses from 9411 module. But  at the same time I also want to read analog value from 9215 module.

The sample code has a timed loop for counting the pulses from 9411. It is working fine. But the timed loop is not accepting Analog Input Read element.

How can I integrate both the VIs together.

Thank you.

0 Kudos
Message 1 of 4
(4,379 Views)

Are your modules installed in a CompactRIO, or are you working with a CompactDAQ device?  What sample code are you using?  When the read is not accepted, which error is thrown?

 

0 Kudos
Message 2 of 4
(4,298 Views)

Modules are installed in FPGA cRIO.

 

For 9411 the sample code has a timed loop.

 

 

When I tried to read AI (9215) value in the same loop, it is showing an error that, "Analog read is not accepted in timed loop" while compiling the code.

 

Thank you.

0 Kudos
Message 3 of 4
(4,263 Views)

KSBasri wrote:

When I tried to read AI (9215) value in the same loop, it is showing an error that, "Analog read is not accepted in timed loop" while compiling the code.


Of course.  The 9215 can only sample at 100kS/s.  If you move your reading of the 9411 into this slower loop, then you can read them together.  Of course, you will be reading your 9411 40x slower.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 4
(4,246 Views)