Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Want first to start/stop Counter and then acquire data with AIRead

First I want to start/stop a counter on the PCI6035E-Board to count edges. After the stopping event I have to aquire data with AI-Read, waiting for a trigger-event to start the acquisition.
I would like to have the whole application in one VI, realized both already in two VIs,but when running both at the same time, the shifting between the tasks does not work. Also I cannot run AI-Read and Counter-Get-Attribute in one VI at the same time, the counter does not start, because AI-Read waits for the trigger-event.
0 Kudos
Message 1 of 2
(3,070 Views)
Greetings,

AI Read is a blocking VI, meaning that no other calls can be made to NI-DAQ while it is executing. You will need to use a DAQ Occurrence to make your analog input operation asynchronous. I would suggest that you examine the example Acquire N Scans - Async Occurrence.vi. This will demonstrate how to use DAQ Occurrences.

Good luck with your application.

Spencer S.
0 Kudos
Message 2 of 2
(3,070 Views)